Source code
Revision control
Copy as Markdown
Other Tools
import pytest
URL = (
)
PAGE_CSS = "#viewer > #pageContainer1"
OK_ERROR_CSS = "#errorMessage"
@pytest.mark.only_platforms("android")
@pytest.mark.asyncio
@pytest.mark.with_interventions
async def test_enabled(client):
await client.navigate(URL)
page, ok_error = client.await_first_element_of(
[client.css(PAGE_CSS), client.css(OK_ERROR_CSS)], is_displayed=True
)
assert page or ok_error
@pytest.mark.only_platforms("android")
@pytest.mark.asyncio
@pytest.mark.without_interventions
async def test_disabled(client):
await client.navigate(URL, await_console_message=ERROR_MSG)