The Stack Overflow podcast is back! Listen to an interview with our new CEO.
5

A workaround that works for me so far is that I use a 'fake' tr: Find the tr I want to click Find a td that belongs to that tr and click on it. it works This bug is reported on Bugzilla and this workaround is recommended


5

GeckoDriver: A Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers. Geckodriver provides HTTP API described by the WebDriver protocol to communicate with Gecko browsers, such as Firefox version above 47. Marionette: Marionette (the next generation of FirefoxDriver) is turned on by default from Selenium 3. Even if you ...


4

Add proper code to launch your Firefox driver using Geckodriver: System.setProperty("webdriver.gecko.driver","path of/geckodriver.exe"); WebDriver driver = new FirefoxDriver(); driver.get(URL); If your are connected with RemoteWebDriver: System.setProperty("webdriver.gecko.driver","path of/geckodriver.exe"); DesiredCapabilities capabilities=...


4

Yes absolutely right. Because all those bookmarks, addons, passwords etc.. are saved In your regular browser's profile folder so when you launch browser manually, It will use existing profile settings & It will show you all those stuffs. But when you run your software web application's tests In selenium webdriver, It Is opening new browser Instance ...


4

IIRC selenium webdriver creates a fresh FF profile each time it's constructed. I found a link about how to set it to a different profile (one where your bookmarks, addons etc. exist) Regarding IE, I imagine profiles with IE more difficult perhaps? Why would you want this though? I can maybe understand why you'd want a particular addon to see how it ...


4

Essentially the functionality is now present in Firefox. The official advice is to use this: https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate You can read about that here: https://hacks.mozilla.org/2017/10/saying-goodbye-to-firebug/ Where they note: The process of unifying Firebug with the rebuilt devtools was completed with the ...


4

It looks live you've answered your own question driver.findElement(By.cssSelector("a[href='www.ebay.com']")) but the DOM says that element is <a href="https://www.ebay.com/" ..../> So update your code to reflect this different href exactly


3

If you are using Selenium v-2.53 downgrade your Mozilla Firefox version. Selenium v-2.53 has lots of issues with Mozilla Firefox version above 45. So you may use FF v-31.0. Even I have got same issue with this version & It was resolved with Selenium v-2.52 & FF V-31.0


3

Unfortunatelly I found only workaround solution (e.g. if you need several different Firefox versions on a single station): nodeConfig_1.json { "capabilities": [ { "browserName": "firefox", "version": "51", "platform": "WINDOWS", "maxInstances": 1, "marionette":true, "cleanSession": true }, ... gridNode_1.cmd ...


2

If you can try with firefox version 47+ as Selenium 3 is supported with later version from v47. Here is the link for reference Hope the below solution can help you with Authentication Alert box - using "selenium.security.UserAndPassword" library UserAndPassword uAp = new UserAndPassword(userName, password); driver.switchTo().alert().authenticateUsing(uAp)...


2

Selenium 2.53.1 is not supported in Firefox 48, you will need to downgrade to Firefox 47 or use the Geckodriver instead. https://stackoverflow.com/questions/38930370/selenium-2-53-or-2-48-not-working-in-firefox-48-0


2

Firefox 54 (not 34) is the latest Firefox version supported by the IDE. But the normal installation button is grayed out as for some reason the IDE is marked here as compatible with Firefox up to 34 only (as Alexey said) - even so it works just fine in Firefox 54. Solution: Visit the Firefox Selenium IDE website using Chrome Download the XPI (since you ...


2

// tagNameString is equal to "storytext" driver.findElements(By.tagName(tagNameString)); What you are actually asking Selenium to do is to find all "storytext" elements. Selenium will be looking for <storytext>...</storytext> elements which, I am pretty sure, you have none. Instead, you intended to use the "by id" locator: WebElement ...


2

There're at least 3 ways to handle this case. Refresh the page and then dismiss the dialog if the driver supports it : driver.refresh(); driver.switchTo().alert().accept(); driver.quit(); Setup the targeted driver to ignore the dialog : // Chrome ChromeOptions options = new ChromeOptions(); options.addArguments("--disable-popup-blocking"); driver = new ...


2

The problem was because I was using the drag_and_drop command. Drag and drop now work with both Chrome and Firefox with the following command: source_element = self.browser.find_element_by_xpath("//*[@id='transfer-tape-listing-nst" + str(drive) + "']/tbody/tr[2]") dest_element = self.browser.find_element_by_xpath("//*[@id='transfer-location-listing'...


2

Have you updated chrome driver as well? – Alexey R. Oct 30 '18 at 16:13 Resolved ! Upgrading to Chromedriver 2.43 did the trick. Latest Release: ChromeDriver 2.43 Supports Chrome v69-71 Changes include: [...] Fixed Switch to Frame is not spec compliant [...] Thanks to Alexey R.


2

Based on the error message the test is looking for ..\Downloads\Programs\geckodriver.exe while you have ..\Downloads\Programs\geckodriver-v0.23.0-win64.exe. Renaming geckodriver-v0.23.0-win64.exe to geckodriver.exe should solve the issue.


1

I found the answer Turns out in options.. you're supposed to point to firefox.exe itself, not just the path const firefox = require('selenium-webdriver/firefox'); let options = new firefox.Options().setBinary(os.homedir() + '/AppData/Local/Mozilla Firefox/firefox.exe'); let driver = new webDr.Builder() .forBrowser('firefox').setFirefoxOptions(...


1

I have also faced the same problem. I just added Typecast and proceeded. The following is working fine. package com.chamlabs.restfulservices.client.pages; import org.openqa.selenium.safari.*; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.WebDriver; public class LogInPage { WebDriver ...


1

Usually the remote end of the webdriver creates a new profile while creating a new session unless specified. If you are using a custom profile, then you must be passing the instance of the profile as an argument to the driver object.


1

You should add the Firefox profile you want when creating the webdriver instance. There is a constructor for that. That way you don't have to check for the profile later. Or is there a good reason to do otherwise?


1

For Selenium 2.53, use Firefox 45.0.2. It will work perfectly. You can also try upgrading to Selenium 3, but then you will need to upgrade the Firefox Version above 47 and also need to use GeckoDriver with it. Both configurations work properly for Automation. You can choose whichever you are comfortable with.


1

I have one test that results in a modal dialog popping up with a yes/no question. I always was to press Yes and the code I use is.... webDriver.switchTo().alert().accept();


1

The webdriver.gecko.driver property needs to be pointed to a geckodriver executable (reference), not firefox browser itself. Make sure geckodriver executable has "x" (execution) permissions. You can also add it to PATH: export PATH=$PATH:/path/to/geckodriver and then just start the driver without setting the system properties: WebDriver driver = new ...


1

Simple solution: use NuGet to download the Firefox driver into your project Geckodriver.exe should now be available in your solution explorer (see screenshot) Make sure you set the property to Copy if newer (or Copy always) Then simply use the code IWebDriver driver = new FirefoxDriver();, because the driver file will always be copied to your bin folder you ...


1

At the end of each scenario, you should be quitting the driver instance during teardown: $driver.quit


1

You should prepare one list and note down the configuration used by the team and cross verify weather those are available at your machine. Selenium version have continuous upgrade. So better to analyze which Selenium version compatible with the browser version and driver version If no info available then download latest Selenium jar files i.e. Selenium ...


1

Try replacing: System.setProperty("webdriver.firefox.marionette","pathToGeckodriver"); with: System.setProperty("webdriver.gecko.driver","pathToGeckodriver");


1

I think you have missed some crucial options. Please consider the code taken from this answer. Of course your MIME type will be different. FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("browser.download.dir", "C:\\Temp"); // folder profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "video/mp4"); // MIME type profile....


1

Lot of article are present on internet regarding GeckoDriver and Selenium 3. Gecko is a webbrowser-engine used in many applications developed by Mozilla Foundation and the Mozilla Corporation Gecko Driver is the connection between your tests in Selenium and the Firefox program. compatible clients to interact with Gecko-based browsers i.e. Mozilla Firefox ...


Only top voted, non community-wiki answers of a minimum length are eligible