Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Mark Collin
    @Ardesco
    it links to the windows program
    PeteanRaduIonut
    @PeteanRaduIonut

    Thanks for the help for generating the hash.

    I've setup a grid with 1 node on windows but encountered the following error :
    Driver info: driver.version: unknown

    But if I start the node withe the following it works:
    java -Dwebdriver.chrome.driver="C:\Selenium\chromedriver.exe" -jar selenium-server-standalone-3.14.0.jar -port 5557 -role node -hub http://192.168.1.104:4444/grid/register

    Should I have a chrome driver on the node also?

    I have this issue only if I setup my own grid. If I use docker I don't have to specify the driver path when starting the node.

    Mark Collin
    @Ardesco
    Sounds like a potential bug with the node code based on what I'm seeing above
    I would suggest just using the docker container for now if it's a viable option
    or using the workaround you have identified
    PeteanRaduIonut
    @PeteanRaduIonut
    Is there a way to run on multiple browsers (firefox, chrome, IE) in a single run ?
    Thanks
    Mark Collin
    @Ardesco
    open multiple terminals and specify different browsers.
    It's specifically running only 1 browser as fast as possible so that you can isolate runs for each browser
    otherwise slower running tests (like IE) would drag out the execution time for everything else (because you aren't done till the slowest driver has finished
    scottatstchome
    @scottatstchome
    Hey gang. I am trying to understand if this project supports TestNG parallel modes.
    Mark Collin
    @Ardesco
    It uses testNG to run tests in parallel
    scottatstchome
    @scottatstchome
    I would like to add extent report to this project. But I needed to just run the project as is. I have imported into Eclipse. I deleted the standalone binaries and zips and ran mvn clean verify. Expected it to download the binaries. Actual result was nothing downloaded and there were Java errors related to using lambda expressions and the diamond operator. I refactored them and now I don't get errors but no binary download is occurring. In addition, the GoogleExampleIT.java is not running. I cloned it to GoogleExampleTest and it runs. I don't think the driver-binary-downloader-maven-plugin is being triggered. Any help is greatly appreciated.
    Shahriar
    @shahriarkamal-dsi
    hello all, for me only chrome browser is working, ie and firefox is not working , anyone can help please ?
    Shahriar
    @shahriarkamal-dsi
    Capture2.PNG
    here is for ie, it shows socket connection error, any one can have any idea ? it will be really helpful
    SawantR
    @SawantR
    java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.
    any solution to this?
    SawantR
    @SawantR
    Can we run tests in paralles i.e .2 methods at a time without grid
    can anyone help me here?
    SawantR
    @SawantR
    Is there any way to execute through Jenkins
    Mark Collin
    @Ardesco

    for parallel run it's in the README:

    You can even specify multiple threads (you can do it on a grid as well!):

    -Dthreads=2

    Selenium expects webdriver.chrome.driver to be set, if it's not it will error if you don't provide a path to an executable. There is a maven plugin that will set it for maven if you run the tests through the command line. If you are running the tests through an IDE (IntelliJ, Eclipse, etc) you will have to set up a env variable in your IDE to cover this
    as for executing through Jenkins, it should work in the same way as running any other maven build.
    Mark Collin
    @Ardesco
    @shahriarkamal-dsi looks like the latest Firefox needs the latest GeckoDriver binary, updated code pushed
    Bidyarthi Mitra
    @bid95_gitlab
    image.png
    image.png
    image.png
    Capture.PNG
    Bidyarthi Mitra
    @bid95_gitlab
    Capture.PNG
    image.png
    image.png
    Capture.PNG
    Bidyarthi Mitra
    @bid95_gitlab
    Capture.PNG
    Capture.PNG
    Mark Collin
    @Ardesco
    that's a lot of screenshots showing that you are in the wrong directory
    looks like you want to
    D:
    cd Selenium-Maven-Template-master
    Bidyarthi Mitra
    @bid95_gitlab

    Hi @Ardesco I have done the following steps so far--extract the project -->import into eclipse -->open cmd-->cd (path)--> mvn clean verify and getting this ERROR. As well as ther is an ERROR in POM.xml that is
    x<dependency>
    <groupId>com.lazerycode.selenium</groupId>
    <artifactId>query</artifactId>
    <version>${query.version}</version>
    <scope>test</scope>
    </dependency>

    x<execution>
    <goals>
    <goal>selenium</goal>
    </goals>
    ------------------------------------------------------------------>>>
    CMD
    ------------------------------------------------------------------>>>

    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 24.403 s
    [INFO] Finished at: 2019-02-22T21:01:33+05:30
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project maven-template: Could not resolve depe
    ndencies for project com.lazerycode.selenium:maven-template:jar:1.0-SNAPSHOT: Co
    uld not find artifact com.lazerycode.selenium:query:jar:2.0.0-beta3 in central (
    https://repo.maven.apache.org/maven2) -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
    lutionException

    it's there, try running man clean verify -U to force an update of your maven cache
    Although I would have expected it to resolve to http://repo1.maven.org/maven2/com/lazerycode/selenium/query/2.0.0-BETA3/, have you got some custom maven settings making it resolve to a different maven central?
    Prudhveer-Reddy
    @Prudhveer-Reddy
    Hi,
    I am trying to run the code in jenkins , but its not working, Its showing the following error:
    Starting ChromeDriver 2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5) on port 31672
    Only local connections are allowed.
    Unable to capture screenshot...
    org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
    (Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.15.0-1032-aws x86_64) (WARNING: The server did not provide any stacktrace information)
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:9745/status] to be available after 89479 ms
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
    at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:197)
    ... 23 more
    Caused by: java.util.concurrent.TimeoutException
    at java.util.concurrent.FutureTask.get(FutureTask.java:205)
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
    ... 24 more
    Unable to clear cookies, driver object is not viable...
    Can you
    Please help me with this
    Mark Collin
    @Ardesco
    Already answered all this in the issues raised on github
    nur123
    @nur123
    hi all
    Mark Collin
    @Ardesco
    Hi
    jonathan-murana
    @jonathan-murana
    Hi