tor-browser

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

test_1836178_atracker_pro.py (623B)


      1 import pytest
      2 
      3 URL = "https://atracker.pro/"
      4 LOGIN_CSS = "a[onclick='openWebVersionWindow()']"
      5 
      6 
      7 async def get_login_popup_url(client, popup_url):
      8    popup = await client.await_popup(popup_url)
      9    await client.navigate(URL, wait="load", timeout=30)
     10    client.soft_click(client.await_css(LOGIN_CSS))
     11    return await popup
     12 
     13 
     14 @pytest.mark.asyncio
     15 @pytest.mark.with_interventions
     16 async def test_enabled(client):
     17    assert await get_login_popup_url(client, "index.html")
     18 
     19 
     20 @pytest.mark.asyncio
     21 @pytest.mark.without_interventions
     22 async def test_disabled(client):
     23    assert await get_login_popup_url(client, "BrowserCheck")