Skip to content

Commit

Permalink
Fixed selenium tests (example.com dns error)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefShenhav committed Jan 26, 2024
1 parent 79698c3 commit 1c051ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selenium/tests/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def test_webdriver_container_container(caps):

with BrowserWebDriverContainer(caps).maybe_emulate_amd64() as chrome:
webdriver = chrome.get_driver()
webdriver.get("http://example.com")
header = webdriver.find_element(By.TAG_NAME, "h1").text
assert header == "Example Domain"
webdriver.get("http://google.com")
header = webdriver.find_element(By.CSS_SELECTOR, "[alt='Google']")
assert header.is_displayed()


def test_selenium_custom_image():
Expand Down

0 comments on commit 1c051ed

Please sign in to comment.