Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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
    Jyoti Kalra
    @Kalra3Jyoti_twitter
    Hi I am facing "java.net.MalformedURLException: no protocol" while connecting to grid
    Jyoti Kalra
    @Kalra3Jyoti_twitter
    how to run this test on selenium grid?
    Mark Collin
    @Ardesco
    can you show me the command you are using? At a guess it looks like you haven't specified the https:// part of the grid url