def test_english_to_german_page_source():
"""
service_args: to prevent ssl v3 error
:return: Test in the page_source if the national flag changed from english to german
"""
driver = webdriver.PhantomJS(service_args=["--ignore-ssl-errors=true"])
driver.get(ROOT + PATH + LANGUAGE["GERMAN"])
driver.get(ROOT)
driver.refresh()
try:
html_content = driver.page_source
assert_in(TEST_ID["GERMAN"], html_content)
assert_not_in(TEST_ID["ENGLISH"], html_content)
finally:
driver.close()
评论列表
文章目录