watzon / marionette

Selenium alternative for Crystal. Browser manipulation without the Java overhead.
https://watzon.github.io/marionette/
MIT License
183 stars 14 forks source link

How to remove everything but the web page content area? #23

Closed drhuffman12 closed 3 years ago

drhuffman12 commented 4 years ago

I'd like to make the page full screen, disable F11, and not show the Chrome is being controlled by automated test software notification.

https://help.applitools.com/hc/en-us/articles/360007189411--Chrome-is-being-controlled-by-automated-test-software-notification

watzon commented 4 years ago

This is a little outside the scope of this project as an automation tool, however if you can figure out how to do the things mentioned please feel free to explain here as it could be helpful for other people.

watzon commented 3 years ago

So this is actually possible using the chrome_options(experimental_options) argument. Here's an example:

options = Marionette.chrome_options(experimental_options: {"excludeSwitches" => ["enable-automation"]})
session = Marionette::WebDriver.create_session(:chrome, capabilities: options)
# ...