Update test_workflow.py

This commit is contained in:
Leon 2023-06-02 23:40:15 +02:00 committed by GitHub
parent 1af7b3da0c
commit feef830190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,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(browser_executable_path="/opt/hostedtoolcache/chromium/latest/x64/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!"))
@ -18,5 +18,5 @@ def main()
if __name__ == "__main__": if __name__ == "__main__":
main(a) main()