Questions tagged [firefoxdriver]

An Server required to communicate with the Selenium and Firefox browser.

Filter by
Sorted by
Tagged with
5
votes
4answers
30k views

Webdriver Firefox “Element could not be scrolled into view”

I am facing this problem on Firefox v.59, Selenium 3.11.0. I just click on an element, like this: webDriver.findElement(By.id("row_0")).click(); and I get exception: org.openqa.selenium....
4
votes
2answers
451 views

Firefox does not shows saved bookmarks, addons while launching?

When I am running software web application's tests In Firefox Browser using selenium WebDriver, It Is not showing me any bookmarks, addons, saved passwords etc in that browser. Have you observed this? ...
4
votes
2answers
409 views

Are there any issues with Selenium v2.53 and Firefox v45.0.1?

I have a couple of tests, which I run them on windows and I have a successful run. But when I move to UBUNTU server with Xvfb, I faced problem with tests, some of them failed!! both cases I used: ...
4
votes
1answer
5k views

Geckodriver: How to use “moz:firefoxOptions” on node.config for selenium grid

I am running tests on selenium grid using nunit C# with: selenium-standalone-server: v3.3.1 selenium webdriver: v3.3 geckodriver: 0.15 firefox: v52 Firefox is not installed on the default location ...
4
votes
2answers
67 views

How can I determine which Firefox profiles is used during a selenium test?

I inherited some java-based selenium tests, and have been tasked with running them against a secured site. The scripts are work fine when the site is not secured. When I run the tests against teh ...
4
votes
1answer
2k views

How to avoid the pop up message while downloading an application (.exe) using selenium

I am trying to download an application and check if it's downloaded into my local system or not. But when I click the download link I have a popup with Save or Cancel options, which is stopping me ...
3
votes
4answers
17k views

How to handle browser closing popup

In one of my scenario I am filling the form but not submitting due to my requirement. Now I am closing the browser but while closing browser it is browser an alert by saying "Are you sure .... ". How ...
3
votes
2answers
18k views

How to get C# to initialize geckodriver

I cannot find any implementations to get geckodriver to run my tests on FF for my C# solution, so I am reaching out to see what solutions you guys might have. I have tried these two: ...
3
votes
1answer
195 views

Getting different results using selenium and iFrames on Firefox 63, Chrome 69 and Chrome 70

I wrote a test using Katalon Studio 5.8.0. My application under test contains a iFrame. Fortunately, both the iFrame and its children are identified using unique attributes. So, the following code ...
3
votes
1answer
3k views

Can't drag and drop from source to target using selenium and python

I am trying to drag and drop using Python and Selenium. I have two containers with rows which indicate file names and by drag and drop, I want to transfer one file from the first container to the ...
3
votes
1answer
2k views

NodeJS Selenium-webdriver firefox geckodriver set browser binary location without changing PATH

Currently I have the following setup for my NodeJS based test for firefox in Windows 7 Firefox 61.0.1 "geckodriver": "^1.11.0", "selenium-webdriver": "^4.0.0-alpha.1" However when I execute the ...
3
votes
2answers
419 views

How do I configure my env.rb file to be able to switch browsers?

Currently, here is part of my configuration with testing using Chrome: prefs = { 'download' => { 'default_directory' => "#{$myRoot}/PDF", 'prompt_for_download' => ...
3
votes
2answers
2k views

Selenium GeckoDriver vs ChromeDriver

I will try to be as clear as possible. Lets take an identical test case in both browsers. Open a page and find an element by the following method: wait.until(ExpectedConditions.elementToBeClickable(...
3
votes
1answer
4k views

Python-Selenium: Title is returning empty on website when using Firefox

I am having this weird issue where when I use: title = driver.title print('Title is: ' + title) the title returns blank or empty, it returns blank only on Firefox and with our internal website. When ...
2
votes
3answers
8k views

What is geckodriver? How to use it in Selenium Webdriver? [closed]

What is geckodriver? How to use it in Selenium Webdriver?
2
votes
2answers
671 views

Which version of FF is compatible with Selenium IDE?

I tried installing FF 48 version & Selenium IDE was not compatible with this version. I went to google & searched, however, i found the answers as FF v47 & above will work with IDE & ...
2
votes
1answer
202 views

how to open a firefox browser through selenium 3.6.0 with another profile using Javascript

I want to launch the Firefox browser through selenium-webdriver 3.6.0 with some of the default settings of the browser changed. Specifically, I want Firefox to download files, during automated testing,...
2
votes
2answers
6k views

WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to localhost

I must not be setting the System properties correctly. Otherwise I can't at all understand why the exception below is cannot connect to localhost. Or, might this be some sort of networking or other ...
2
votes
2answers
4k views

GeckoDriver not working in C# for Firefox browser

I'm trying to run some unit tests using Selenium Webdriver and C#.Net for Firefox browser but I was unable to do it (Chrome and IE11 browsers are working smoothly). Here is the info I gathered: OS: ...
2
votes
1answer
365 views

Selenium WebDriver/Grid:Page is not loading after authentication in Firefox browser

I have created a test in C# which launches Firefox browser,navigates to application URL which loads a authentication screen.Enter user credentials and hit submit. Firefox is unable to navigate to ...
2
votes
1answer
162 views

Code executes in chrome perfectly but it executes up to the “send sms only ” when I run on Mozilla [closed]

package vaishu; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; //import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class ...
1
vote
1answer
85 views

Get java.lang.IllegalStateException

I am a beginner to testing. I want to launch Firefox browser. Can anyone explain me the error of below code? package Script; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox....
1
vote
1answer
930 views

Code works properly but showing INFO: Detected dialect: W3C error

1502091713068 geckodriver::marionette INFO Starting browser C:\Program Files\Mozilla Firefox\firefox.exe with args ["-marionette"] 1502091717606 Marionette INFO Listening on port 51394 Aug ...
1
vote
1answer
2k views

How do I identify a specific <div> by id with Selenium?

I want to grab everything within this div with an id of "storytext": <!-- END ID="STORY-META" CLASS="STORY-META" --> <div id="storytext" class="storytext storylocation linkLocation"> ...
1
vote
1answer
4k views

Authentication Acting as Alert, Not as Window

I'm using Selenium WebDriver to automate testing, but I'm encountering issues when I try to code the login. The authentication is acting as an alert in Firefox, not as a window, which means that I ...
1
vote
2answers
743 views

How to run selenium Webdriver test cases in Firefox C#?

TestFixture: class TestForFirefox { IWebDriver driver = null; [SetUp] public void Initialize() { this.driver = new FirefoxDriver(); } [Test] public void ...
1
vote
3answers
1k views

Type mismatch: cannot convert from FirefoxDriver to WebDriver

package newpackages1; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class Myclass { public static void main(String[] args) throws ...
1
vote
1answer
275 views

selecting from drop down list using selenium3.0.2 and python3.5.1

This is my first question in OS and I would describe it in details with my best effort. Selenium3.0.2 firefox 45.6.0 geckodriver 0.13.0 python 3.5.1 (with Anaconda 2.4.1 (64bit)) What I want to ...
1
vote
2answers
788 views

Error while opening Firefox with Selenium in Ubuntu

I'm using Selenium 3 on Ubuntu and I am not able to launch the Firefox browser itself. I am getting following error- error: "driver is not executable"... Here is the script: package pom; import ...
1
vote
1answer
55 views

Selenium WebDriver gives the same window handle across multiple Firefox browser sessions

We use different profiles to test different features of our system. If we open new multiple FF sessions (each with it's own profile), Selenium Webdriver only uses 1 window handle identifier. (pseudo ...
1
vote
1answer
499 views

Logging js console when doing selenium test using firefox driver

I'm writing selenium tests which are launch on the firefox (gecko) driver. If a test fails, I want to retrieve the log present on the firefox js console. In order to do that, I have added the ...
1
vote
5answers
3k views

Get Driver Version using Selenium with C#

I am testing with C# & Selenium & Selenium.Chrome.WebDriver (Nu-GET Package, Version 2.44.0). Now I am searching for a Method which gives me the actual Version of the current runnig driver. ...
1
vote
0answers
1k views

Unable to open website in Firefox using selenium webdriver one updated version to 55 [closed]

Here is the sample code which I'm using. System.setProperty("webdriver.gecko.driver","C:\\geckodriver-v0.18.0-win64\\geckodriver.exe"); WebDriver driver = new FirefoxDriver(); driver.get("https://...
1
vote
0answers
2k views

How to run Selenium through xvfb? (X frame virtual buffer)

Somewhat specific to Ubuntu, this is towards running this JAR on a server. Running xvfb just hangs for me, so trying to get the syntax properly: thufir@doge:~/.html$ thufir@doge:~/.html$ xvfb-run --...
1
vote
1answer
1k views

how to set up firefox preferences to avoid the save file pop up window while downloading a file [duplicate]

asked this question earlier, but now i will ask again with bit more explanation of what i did, I could not get it worked please help me out. I am trying to download a file which is having a .exe ...
1
vote
4answers
7k views

selenium.NoSuchElementException: Unable to locate element: #passwordNext

Error: Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: #passwordNext For documentation on this error, please visit: http://seleniumhq.org/exceptions/...
1
vote
1answer
582 views

org.openqa.selenium.StaleElementReferenceException: element reference stale either the element is no longer attached to DOM or page has been refreshed [closed]

Mozilla - 53.0 and Mozilla - 54.0b2 Gecko driver - 16.1 Selenium 3.4 org.openqa.selenium.StaleElementReferenceException: The element reference of stale: either the element is no longer attached to ...
0
votes
2answers
4k views

Firefox browser opens but URL is not launched

I am working on selenium. I am using linux os. I am using firefox driver for automated testing my app. My firefox version is 53.0.3 (64 bit). When I run the code the Firefox browser open and don't ...
0
votes
1answer
668 views

What are the alternatives to FirePath and Firebug with the Firefox

I am a beginner to automated testing. I cannot find Firebug and Firepath on Firefox add ons. so What are the alternatives to FirePath and Firebug with the Firefox? Thanks
0
votes
1answer
96 views

Unable to launch Firefox driver using selenium

I'm getting error like Exception in thread main java. NoClassDefFoundError:com/google/common/collect/immutableMap and above are the full screen shots:
0
votes
1answer
2k views

“Element could not be scrolled into view” when button is already visible

I'm using Selenium 3.141.59 with a Firefox driver. I have a "flex" button very visible and very clickable (according to me) but selenium doesn't seem able to click on it. Here is the button: <...
0
votes
1answer
41 views

the Gecko path is not working

package firsttestngpackage; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.Assert; import org.testng.annotations.*; public class FirstTextNGFile { ...
0
votes
2answers
1k views

How to pass the web driver instance from one testcase class to another testcase class in TestNG?

InitializeDriver.java: public class InitializeDriver{ WebDriver driver; public WebDriver getDriver() throws Exception{ driver = new FirefoxDriver(); System.out.println("Initialize ...
0
votes
3answers
79 views

Mozilla browser open issue in the Selenium Webdriver

Getting below issue while opening Mozilla Firefox browser using selenium webdriver. Browser opens for just few seconds (1-2 seconds) and it gets closes automatically. Error: org.openqa.selenium....
0
votes
1answer
500 views

Error: Cannot connect to firefox with selenium [closed]

I am learning and doing automated testing. I was able to connect Firefox with selenium in the project created but now on of the experienced developer has given his code to go through and implement ...
0
votes
1answer
2k views

Accepting untrusted certificates with geckodriver in C#

I cannot get the code I have to go to the URL without having issues with the certificate. Here is the code I am trying: else if (testMethod.BrowserType.Equals(BrowserType.FireFox)) { ...
0
votes
1answer
112 views

Webdriver setup error in Eclipse, Mac OS X Catalina

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018. I've installed Gecko driver already through terminal and it's ...
0
votes
0answers
40 views

Firefox opening wrong profile with selenium c#

I'm using selenium 3.14 with geckodriver 0.24, I'm using following code to run the existing profiles I have already created for my different accounts. FirefoxOptions firefoxOptions = new ...