tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_1960294_firstenergycorp_com.py (579B)


      1 import pytest
      2 
      3 URL = "https://www.firstenergycorp.com/"
      4 
      5 UNSUPPORTED_TEXT = "upgrade your browser"
      6 
      7 
      8 @pytest.mark.only_platforms("android")
      9 @pytest.mark.asyncio
     10 @pytest.mark.with_interventions
     11 async def test_enabled(client):
     12    await client.navigate(URL)
     13    assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True)
     14 
     15 
     16 @pytest.mark.only_platforms("android")
     17 @pytest.mark.asyncio
     18 @pytest.mark.without_interventions
     19 async def test_disabled(client):
     20    await client.navigate(URL, wait="none")
     21    assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True, timeout=4000)