MCPcopy
hub / github.com/appium/python-client / test_find_single_element

Function test_find_single_element

test/functional/android/chrome_tests.py:44–50  ·  view source on GitHub ↗

Test finding a single element in Chrome browser.

(driver: 'WebDriver')

Source from the content-addressed store, hash-verified

42
43
44def test_find_single_element(driver: 'WebDriver') -> None:
45 """Test finding a single element in Chrome browser."""
46 e = driver.find_element(by=AppiumBy.XPATH, value='//body')
47 assert e.text == ''
48
49 # Chrome browser's default page
50 assert '<html><head></head><body></body></html>' in driver.page_source

Callers

nothing calls this directly

Calls 1

find_elementMethod · 0.45

Tested by

no test coverage detected