How to setup Selenium Grid 4 in Standalone mode | Run automation tests in parallel using grid

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 25

  • @brunnorodriguues
    @brunnorodriguues 11 หลายเดือนก่อน +2

    I always have to thank the indian guys... you're the best... big hug from Brazil...

  • @nsallito
    @nsallito 14 วันที่ผ่านมา

    Do you have anything special configured on your VM?
    Because from my local machine, when I run the webDriver to the VM:
    driver = new RemoteWebDriver(new URL(urlRemote), options);
    I get the following error:
    "An error occurred while opening the browser: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. "

  • @kuzmenko86
    @kuzmenko86 ปีที่แล้ว +3

    if some one have difficulties with running the tests in some of the browser - just add the --selenium-manager true to run command
    so it will looks like:
    java -jar selenium-server-4.14.1.jar standalone --selenium-manager true

  • @pshravantikka4517
    @pshravantikka4517 2 หลายเดือนก่อน

    Hi . Do you know why does a white screen\browser launches first when running tests using selenium grid in standalone mode ? It executes the tests in the grid but the appearance white screen \ browser is very annoying. Any help would be appreciated

    • @maximumautomation
      @maximumautomation  2 หลายเดือนก่อน

      Hi, does it happen with a specific web page or with all website?

  • @5002sj
    @5002sj ปีที่แล้ว +1

    Hi thanks for the video, i have a doubt, is there any way to stop the parallel execution in grid. i cant run my scripts parallel. It has to be executed one after other.

    • @maximumautomation
      @maximumautomation  ปีที่แล้ว

      Yes, you can do your execution in a sequential order over Grid. By default Grid does not run the scripts in parallel. You need to make sure you are not running your test in parallel.
      For example if you are using testng.xml file then you don't have to provide a parallel attribute.

    • @5002sj
      @5002sj ปีที่แล้ว +1

      Hi thanks for the reply. Just one more doubt
      I am using webdriver manager in my framework. When i run the stand alone server jar i am getting no drivers has been configured or have been found on path.
      How can i solve this error?
      Download and keep drivers in path will solve the issue? Will it create any conflict with webdiver manager if i download driver manually and keep it on the path?

    • @maximumautomation
      @maximumautomation  ปีที่แล้ว

      No, you don't need to download the driver manually now, if you're using webdriver manager. Could you please share the code where you are initiating a webdriver object?

    • @5002sj
      @5002sj 11 หลายเดือนก่อน +1

      My issues fixed after upgrading from selenium 4.11 to 4.16.1 it shows 8 chrome 8 edge in my computer.
      In remote machine also i was getting the no driver found issue, so i manually downloaded a chrome driver and keep it in the folder of jar file, now it is showing 4 chrome drivers in my vm

  • @Rimba06
    @Rimba06 10 หลายเดือนก่อน +1

    How to add video recording to session in selenium grid, so the automation can be seen in selenium grid, not launch in local browser?

    • @maximumautomation
      @maximumautomation  10 หลายเดือนก่อน

      How did you set up your grid? With docker image or jar file?
      You can watch the video below to see the one way of recording your execution.
      th-cam.com/video/Uteg0M_mPwU/w-d-xo.html

  • @Exparo
    @Exparo ปีที่แล้ว +1

    How do you keep running the selenium server, when you close the cmd it will ended

    • @maximumautomation
      @maximumautomation  ปีที่แล้ว

      You can run your jar file as a background process in the window server machine. You can refer to the articles to run jar files on the window server.

  • @KavibharathiP-p7j
    @KavibharathiP-p7j ปีที่แล้ว +1

    How to create that VM1, VM2 in our local machine??
    Can you explain that ?

    • @maximumautomation
      @maximumautomation  ปีที่แล้ว

      If you do not have VMs then I would suggest setting the Grid through the docker container.

    • @maximumautomation
      @maximumautomation  ปีที่แล้ว

      You can watch the video below to set up the grid using docker.
      th-cam.com/video/R_biPog5IYc/w-d-xo.html

  • @thalai143
    @thalai143 ปีที่แล้ว +1

    Ok please tell us how to add this on Gitlab CI

  • @nileshsinha6171
    @nileshsinha6171 9 หลายเดือนก่อน

    Where do you see the reports?

  • @janagar8942
    @janagar8942 ปีที่แล้ว +1

    Hi, how to do this using javascript webdriverIO?

  • @knightthompson2938
    @knightthompson2938 ปีที่แล้ว +1

    Thank you!

  • @kalicharanpremi-pd9ip
    @kalicharanpremi-pd9ip 10 หลายเดือนก่อน +1

    thank you sir

  • @jacintomichaelpalaroan2795
    @jacintomichaelpalaroan2795 ปีที่แล้ว +1

    Thanks!