Last active
October 31, 2023 03:12
-
-
Save NaelsonDouglas/3a260c078adb78bb3b4fc6bf42ee2650 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.firefox.options import Options as FirefoxOptions | |
options = FirefoxOptions() | |
options = webdriver.FirefoxOptions() | |
options.set_capability('browserName', 'firefox') | |
options.set_capability('browserVersion', '117.0') # | |
#options.set_capability('selenoid:options', {'enableVideo': True}) # Faz com que a execução seja gravada em ~/.aerokube/selenoid/video | |
options.set_capability('selenoid:options', {'enableVNC': True}) # Permite ver o webdriver em tempo real pela web-ui | |
driver = webdriver.Remote(command_executor='http://localhost:4444/wd/hub',options=options) | |
driver.implicitly_wait(0.8) | |
driver.get('http:\\www.google.com') | |
print(driver.title) | |
driver.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Veja que o webdriver é da classe 'webdriver.Remote'