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
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 (the next generation of FirefoxDriver) is turned on by default from Selenium 3. Even if you ...
Add proper code to launch your Firefox driver using Geckodriver:
WebDriver driver = new FirefoxDriver();
If your are connected with RemoteWebDriver:
Unfortunatelly I found only workaround solution (e.g. if you need several different Firefox versions on a single station):
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 ...
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 ...
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 ...
It looks live you've answered your own question
but the DOM says that element is
<a href="https://www.ebay.com/" ..../>
So update your code to reflect this different href exactly
// tagNameString is equal to "storytext"
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:
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
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);
Selenium 2.53.1 is not supported in Firefox 48, you will need to downgrade to Firefox 47 or use the Geckodriver instead.
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.
Visit the Firefox Selenium IDE website using Chrome
Download the XPI (since you ...
I faced the same issue when I upgraded to new Firefox version 63. I have used the Actions class to click an element. Give a try!
WebElement element = WebDriver.findElement("locator");
Actions act=new Actions(driver);
There're at least 3 ways to handle this case.
Refresh the page and then dismiss the dialog if the driver supports it :
Setup the targeted driver to ignore the dialog :
ChromeOptions options = new ChromeOptions();
driver = new ...
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")
dest_element = self.browser.find_element_by_xpath("//*[@id='transfer-location-listing'...
Have you updated chrome driver as well? – Alexey R. Oct 30 '18 at
Upgrading to Chromedriver 2.43 did the trick.
Latest Release: ChromeDriver 2.43
Supports Chrome v69-71
Fixed Switch to Frame is not spec compliant
Thanks to Alexey R.
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.
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.
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?
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.
As per the Stack Trace
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: #passwordNext
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:08.638Z'
System info: host: 'BRIGHTLEAF-0046'...
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:
and then just start the driver without setting the system properties:
WebDriver driver = new ...
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 ...
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 ...
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