in Education by
I am using mac mojave 10.14.3, JDK 1.8, Serenity core 2.0.40 (latest) to develop my test cases. They all run perfectly well either with Chrome ver. 73(100% of time) or Firefox ver. 65.0(99% of time) on my local mac system. Our Jenkins is running on Redhat linux with no GUI. We installed Firefox browser( Firefox version 60.5.0 probably the latest available) since Chrome is not supported/ unavailable for RH Linux. When I merged code and ask my admin to run the git branch on Jenkins, I always get errors. I have these in my project code itself: Selenium-java :3.141.59 Selenium-api: 3.141.59 Selenium-server: 3.141.59 geckodriver:0.24.0 chromedriver:2.45.615355 Today after every test running 100% pass on my local Mac system, ran on Jenkins(RH Linux box) I am getting this error (ran 2 times). net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver at net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:154) Caused by: net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate new WebDriver instance of type class org.openqa.selenium.firefox.FirefoxDriver (Timed out waiting 45 seconds for Firefox to start. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' Caused by: org.openqa.selenium.WebDriverException: Timed out waiting 45 seconds for Firefox to start. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'xxx', ip: 'xxx', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-957.5.1.el7.x86_64', java.version: '1.8.0_202' Driver info: driver.version: FirefoxDriver Caused by: org.openqa.selenium.WebDriverException: Timed out waiting 45 seconds for Firefox to start. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'xxx', ip: 'xxx', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-957.5.1.el7.x86_64', java.version: '1.8.0_202' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.firefox.XpiDriverService.waitUntilAvailable(XpiDriverService.java:247) JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
*********POSSIBLY A BUG ?????** According to this page, [Serenity BDD Book]https://serenity-bdd.github.io/theserenitybook/latest/web-testing-in-serenity.html I prepared my config.properties file as ... Chrome Browser Headless Testing webdriver.driver=chrome headless.mode = true drivers.windows.webdriver.chrome.driver = src/test/resources/webdriver/windows/chromedriver.exe drivers.mac.webdriver.chrome.driver = src/test/resources/webdriver/mac/chromedriver drivers.linux.webdriver.chrome.driver = src/test/resources/webdriver/linux/chromedriver Firefox Browser Headless Testing webdriver.driver=firefox gecko.firefox.options = {"args": ["-headless"]} drivers.mac.webdriver.gecko.driver = src/test/resources/webdriver/mac/geckodriver drivers.linux.webdriver.firefox.driver = src/test/resources/webdriver/linux/geckodriver But I was having problem as reported above UnsupportedDriverException: I need to say, everything worked perfectly on my local Mac system, but NOT on RedHat Linux machine with Firefox browser 60.5 version (which should work with geckodriver 0.24.0) But our Jenkins System Admin added the geckodriver to system path, then it WORKED !!!!! Our Jenkins Server is running on RedHat Linux.

Related questions

0 votes
    I want to put value using webdriver, This is the command I am using driver.findElement(By.name("name")).sendKeys(" ... way to do so ? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    I want to log in to instagram using selenium, but I can't seem to enter values into the fields. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 1, 2022 in Education by JackTerrance
0 votes
    I have written tests with Selenium2/WebDriver and want to test if HTTP Request returns an HTTP 403 Forbidden. ... Selenium WebDriver? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    How to open a new tab in the existing Firefox browser using Selenium WebDriver (a.k.a. Selenium 2)? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I'm working on a Java Selenium-WebDriver. I added driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); ... a better way? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I use Selenium RC, for which the scroll command is selenium.getEval("scrollBy(0, 250)"); Now, I have started ... the command for it? Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    I use Selenium RC, for which the scroll command is selenium.getEval("scrollBy(0, 250)"); Now, I ... questions and answers pdf, Verbal Reasoning interview questions for beginners...
asked Oct 30, 2021 in Education by JackTerrance
0 votes
    What’s the use of Selenium WebDriver? 1. To run cross-browser tests 2. To automate hardware testing 3. To run UI tests 4. To run load tests...
asked Jul 11, 2021 in Technology by JackTerrance
0 votes
    Page scroll up or down in Selenium WebDriver (Selenium 2) using java I use Selenium RC, for which the scroll command ... using Selenium WebDriver , what will be the command for it?...
asked Nov 20, 2020 in Education by Editorial Staff
0 votes
    I've recently seen quite a bit of the following pattern in Python: class Foo: pass class Bar: ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    first of all,i am fairly new with spring mvc so .. how springmvc find the right class to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    I'm coding a basic portfolio page in ASP.NET Core Razor Pages. I want to have a contact form at ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I'm trying to run a sample Java application from the command promopt but I'm getting the following error ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 28, 2022 in Education by JackTerrance
0 votes
    I am using spring boot command line runner app, it hangs at PostGIS dialect, the below stack trace contains ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    I'm new to React with Redux and I've been working on a new web application that has some basic ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 29, 2022 in Education by JackTerrance
...