Update sample.py
This commit is contained in:
parent
4c58dd1cca
commit
5863bd70d4
1 changed files with 5 additions and 3 deletions
|
|
@ -4,9 +4,11 @@ if __name__ == "__main__":
|
|||
driver = webdriver.Chrome()
|
||||
|
||||
driver.get("https://waylonwalker.com/")
|
||||
|
||||
passed = driver.find_element_by_css_selector(".about").is_displayed()
|
||||
|
||||
headers = driver.find_elements_by_tag_name("h2")
|
||||
|
||||
passed = headers[0].is_displayed()
|
||||
|
||||
print('number of headers: ', len(headers))
|
||||
print("Test passed") if passed else print("Test failed")
|
||||
|
||||
driver.quit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue