Update test_workflow.py
This commit is contained in:
parent
cbb1cd268d
commit
5c78b7cca3
|
@ -10,7 +10,7 @@ from selenium.webdriver.support.wait import WebDriverWait
|
||||||
import undetected_chromedriver as uc
|
import undetected_chromedriver as uc
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
driver = uc.Chrome(browser_executable_path="/opt/hostedtoolcache/chromium/latest/x64/chrome", headless=True)
|
driver = uc.Chrome(headless=True)
|
||||||
driver.get("https://nowsecure.nl")
|
driver.get("https://nowsecure.nl")
|
||||||
WebDriverWait(driver, 15).until(EC.text_to_be_present_in_element(("css selector", "main h1"), "OH YEAH, you passed!"))
|
WebDriverWait(driver, 15).until(EC.text_to_be_present_in_element(("css selector", "main h1"), "OH YEAH, you passed!"))
|
||||||
driver.quit()
|
driver.quit()
|
||||||
|
|
Loading…
Reference in New Issue