How to fix org.openqa.selenium.remote.http.WebSocket$Listener onError with Selenium WebDriver | BDD

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 30

  • @boundlessgyan
    @boundlessgyan Год назад +5

    Excellent showcasing of the root cause. thanks.

  • @testing24x7
    @testing24x7 Год назад +3

    It was really tricky.Thanks for sharing.

  • @kishorpawar1314
    @kishorpawar1314 2 месяца назад +1

    Awesome it helped me. Thanks

  • @ammu15259
    @ammu15259 6 месяцев назад +1

    Its working for me.Thank u so much😍

    • @sdetadda
      @sdetadda  5 месяцев назад +1

      Glad to hear that

  • @satishraja4u
    @satishraja4u 9 месяцев назад

    Worked for me . Thank You :)

  • @SingaravelanNatrayan
    @SingaravelanNatrayan 5 месяцев назад +1

    thanks for your video , helped me a lot today

  • @yoganandbheema6851
    @yoganandbheema6851 9 месяцев назад +1

    Thankyou its working for me.

    • @sdetadda
      @sdetadda  7 месяцев назад

      You're welcome!

  • @SayantaniMajee
    @SayantaniMajee 3 месяца назад +1

    Thanks it worked

    • @sdetadda
      @sdetadda  3 месяца назад

      Glad it helped

  • @vineetbhargav9834
    @vineetbhargav9834 10 месяцев назад

    hi Ragvendra, I face same issue, when use quit() it not showing any error on console but when use close() it show org.openqa.selenium.remote.http.WebSocket$Listener onError. is there any solution for when we use only close () methods. pls share it

  • @suryapbhoi
    @suryapbhoi 9 месяцев назад +1

    Thank you

    • @sdetadda
      @sdetadda  7 месяцев назад

      You're welcome

  • @gandhigeerthana2058
    @gandhigeerthana2058 7 месяцев назад

    In PageObject model. I’m getting null pointer @Test part but it running @Beforetest well😢

  • @bireswarghosal1525
    @bireswarghosal1525 8 месяцев назад

    But the purpose of using close() and quit() is totally different if I need to use close() then on that case what will be the solution ?

  • @harishkce1989
    @harishkce1989 Год назад

    WIll it not be a problem if tests are executed in parallel ? driver.quit(); will close all instances of the browser especially ?

    • @sdetadda
      @sdetadda  Год назад

      Adding remote-allow-origins argument to the ChromeDriver constructor may help you fix/resolve the warning.
      ChromeOptions options = new ChromeOptions();
      options.addArguments("--remote-allow-origins=*");
      WebDriver driver = new ChromeDriver(options);

    • @harishkce1989
      @harishkce1989 Год назад

      @@sdetadda options.addArguments("--remote-allow-origins=*") i added this option too...still resulting in same warning message unfortunately

    • @sdetadda
      @sdetadda  Год назад

      1.Try adding latest selenium server jar/dependencies
      2.be sure to quit/close/flush all driver instances before starting the script execution.
      Let me know if it works, share with me your test script/class file otherwise?

    • @sdetadda
      @sdetadda  Год назад

      Also ensure the driver and actual browser version matches/ are compatible.

  • @harishkce1989
    @harishkce1989 Год назад

    Is it consider error or warning ?? cos in my case test case did not fail..

    • @sdetadda
      @sdetadda  Год назад +1

      Its WARNING and seems harmless as long as test execution is concerned.

  • @Pedrotester
    @Pedrotester Год назад

    In my case it doesnt work changing to quit(), the error is showing again

    • @sdetadda
      @sdetadda  Год назад

      Try to pick the latest selenium dependencies from mvnrepository or add remote-allow-origins while initializing the driver,
      ChromeOptions options = new ChromeOptions();
      options.addArguments("--remote-allow-origins=*");
      WebDriver driver = new ChromeDriver(options);

    • @cgraham74
      @cgraham74 11 месяцев назад

      I am using Chrome driver options as well as I use driver.quit(). I still get intermittent Socket Exceptions@@sdetadda

    • @nikitatuteja8320
      @nikitatuteja8320 9 месяцев назад

      doesnt work

  • @nikitatuteja8320
    @nikitatuteja8320 9 месяцев назад

    In my case it doesnt work changing to quit(), the error is showing again