UiPatjh chrome web driver mode

Hi

Let’s go one by one

Headless mode means that the browser is launched without a graphical user interface (GUI). This means that the browser window is not displayed on the screen. Headless mode is often used for automated testing and web scraping, as it can be faster and more efficient than using a GUI browser.

Use GUI mode means that the browser is launched with a GUI. This is the default mode for UiPath web browser activities. Use GUI mode is useful for debugging and monitoring automation scripts, as it allows you to see what is happening on the screen.

When to use headless mode

  • When you need to automate a web browser task quickly and efficiently.
  • When you are running automation scripts on a server or other headless machine.
  • When you do not need to see what is happening on the screen.

When to use Use GUI mode

  • When you are debugging or monitoring automation scripts.
  • When you need to interact with elements on the screen that are not easily accessible using headless mode.
  • When you are running automation scripts on a machine that does not have a graphical display.

Headless mode is generally faster than Use GUI mode, as it does not have to render the browser window on the screen. However, the speed difference can vary depending on the specific automation task and the machine that the automation is running on.

Example

Suppose you are automating the process of logging into a website and extracting some data from the homepage. You could use either headless mode or Use GUI mode to automate this task.

If you use headless mode, the browser would be launched without a GUI and the automation would run in the background. You would not be able to see what is happening on the screen, but the automation would be faster than if you used Use GUI mode.

If you use Use GUI mode, the browser would be launched with a GUI and you would be able to see what is happening on the screen. This would be useful if you need to debug the automation or if you need to see the data that is being extracted from the website.

Reference document

About the WebDriver protocol:

Hope this helps

Cheers @Ritaman_Baral

1 Like