We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import pytest from testui.support.appium_driver import NewDriver from testui.support.testui_driver import TestUIDriver from testui.elements.testui_element import e @pytest.fixture(autouse=True) def driver() -> TestUIDriver: driver = ( NewDriver() .set_logger() .set_browser("chrome") .set_soft_assert(True) .set_selenium_driver() ) yield driver driver.quit() @pytest.mark.test def test(driver: TestUIDriver) -> None: driver.navigate_to("http://example.com/") e(driver, "css", "body").wait_until_visible(seconds=10) text = e(driver, "css", "h1").wait_until_visible().get_text() print(f"H1 text: {text}")
H1 text: Example Domain is printed out
H1 text: Example Domain
H1 text: None is printed out
H1 text: None
Add type annotations where possible to improve autosuggestions in IDEs
The text was updated successfully, but these errors were encountered:
Fix issue #8
3d98a18
No branches or pull requests
Sample test
Expected result
H1 text: Example Domain
is printed outActual result
H1 text: None
is printed outAdditional comments
Add type annotations where possible to improve autosuggestions in IDEs
The text was updated successfully, but these errors were encountered: