Community
Participate
Working Groups
Application Under Test: https://travel.testsigma.com/login" Test Framework: Selenium 3.0.42 -- Configuration Details -- Product: Eclipse IDE 4.14.0.20191212-1200 (org.eclipse.epp.package.java.product)Installed Features: org.eclipse.jdt 3.18.200.v20191210-0610 Versioning Plugin: org.eclipse.platform 4.14.0.v20191210-0610 1656695588746 geckodriver INFO Listening on 127.0.0.1:13408 1656695588977 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofile9vi1U9" 1656695589771 Marionette INFO Marionette enabled console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/rust_mozprofile9vi1U9/search.json.mozlz4", (void 0))) Missing chrome or resource URL: resource://gre/modules/UpdateListener.jsm 1656695593334 Marionette INFO Listening on port 39625 Read port: 39625 1656695593419 RemoteAgent WARN TLS certificate errors will be ignored for this session Jul 01, 2022 10:43:13 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://travel.testsigma.com" JavaScript error: https://travel.testsigma.com/plugins/jquery-ui/jquery.js line 349 > eval, line 34: ReferenceError: s$ is not defined 1656695601759 Marionette INFO Stopped listening on port 39625 Missing chrome or resource URL: resource://gre/modules/UpdateListener.jsm console.error: "Error during quit-application-granted: [Exception... \"File error: Not found\" nsresult: \"0x80520012 (NS_ERROR_FILE_NOT_FOUND)\" location: \"JS frame :: resource:///modules/BrowserGlue.jsm :: _onQuitApplicationGranted/tasks< :: line 1969\" data: no]" JavaScript error: resource://gre/modules/UrlClassifierListManager.jsm, line 694: TypeError: this.tablesData[table] is undefined ###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost [SELENIUM IDE - JUnit4] - Source Code Below // Generated by Selenium IDE import org.junit.Test; import org.junit.Before; import org.junit.After; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.core.IsNot.not; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.Dimension; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.Alert; import org.openqa.selenium.Keys; import java.util.*; import java.net.MalformedURLException; import java.net.URL; public class AppLoginTest { private WebDriver driver; private Map<String, Object> vars; JavascriptExecutor js; @Before public void setUp() { System.setProperty("webdriver.gecko.driver","/home/adam/Documents/SELENIUM/Java-External-Jars/geckodriver"); driver = new FirefoxDriver(); js = (JavascriptExecutor) driver; vars = new HashMap<String, Object>(); } @After public void tearDown() { driver.quit(); } @Test public void AppLogin() { driver.get("https://travel.testsigma.com/login"); driver.manage().window().setSize(new Dimension(944, 692)); { List<WebElement> elements = driver.findElements(By.cssSelector("#logo > .bg-white")); assert(elements.size() > 0); } driver.findElement(By.id("firstname_lable")).click(); driver.findElement(By.id("first_name")).sendKeys("Anderson Smith"); driver.findElement(By.id("password_lable")).click(); driver.findElement(By.id("icon_telephone")).click(); driver.findElement(By.id("icon_telephone")).sendKeys("anderson@123"); driver.findElement(By.name("action")).click(); { List<WebElement> elements = driver.findElements(By.xpath("//a[@id=\'logo-img\']/div")); assert(elements.size() > 0); } { WebElement element = driver.findElement(By.cssSelector(".acc_icon")); Actions builder = new Actions(driver); builder.moveToElement(element).perform(); } { List<WebElement> elements = driver.findElements(By.xpath("//a[contains(text(),\'Anderson Smith\')]")); assert(elements.size() > 0); } driver.findElement(By.cssSelector(".acc_icon")).click(); driver.findElement(By.linkText("Logout")).click(); { List<WebElement> elements = driver.findElements(By.xpath("//button[@id=\'dropdownMenuButton\']/i")); assert(elements.size() > 0); } driver.findElement(By.cssSelector(".acc_icon")).click(); driver.findElement(By.xpath("//a[contains(text(),\'Login\')]")).click(); { List<WebElement> elements = driver.findElements(By.xpath("//img[@alt=\'logo image\']")); assert(elements.size() > 0); } } }
The problem is on my first attempt I created a LoginTest.java under the project named SampleWebTesting in Eclipse IDE. This LoginTest.java had some issues which halted its execution when run as a JUnit Test. When I replaced this file with the code which worked perfectly normal and then tried to run the newer version of the code the previously version of the code executed. How come a code which has been deleted from the Eclipse IDE can run when it was replaced with a newer version of code???? this is extra ordinary for me to have noticed this issue with Eclipse IDE and I immediately thought of filing a bug. I deleted the LoginTest.java and recorded the newer version of the Java code using the Selenium IDE and imported it under a new file AppLoginTest.java however this time also the previous version of the code was running (which was getting halted due to some code related issues)...
You haven't provided any details on how this is related to the web tools yet. Details like the kind of project, its structure, and how it is set to build and launch would be useful. Is a server even involved, and if so, which one? Does it still happen with the current release? You're using one 10 releases and from two and a half years ago.
No further information in the 5 months since opened, despite responding some 5 minutes later...