tor-browser

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

test_1895672_hackgreensdr_org.py (538B)


      1 import pytest
      2 
      3 URL = "http://hackgreensdr.org:8901/"
      4 
      5 AUDIO_START_CSS = "input[type=button][value='Chrome audio start']"
      6 
      7 
      8 @pytest.mark.asyncio
      9 @pytest.mark.with_interventions
     10 async def test_enabled(client):
     11    await client.navigate(URL, wait="none")
     12    client.await_css(AUDIO_START_CSS, is_displayed=True, timeout=4000)
     13 
     14 
     15 @pytest.mark.asyncio
     16 @pytest.mark.without_interventions
     17 async def test_disabled(client):
     18    await client.navigate(URL)
     19    await client.stall(3)
     20    assert not client.find_css(AUDIO_START_CSS, is_displayed=True)