tor-browser

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

test_1855088_125039_hrmis2_eghrmis_gov_my.py (553B)


      1 import time
      2 
      3 import pytest
      4 
      5 URL = "https://hrmis2.eghrmis.gov.my/HRMISNET/Common/Main/Login.aspx"
      6 DIALOG_CSS = "#dialog4"
      7 
      8 
      9 async def is_dialog_shown(client):
     10    await client.navigate(URL)
     11    time.sleep(2)
     12    dialog = client.await_css(DIALOG_CSS)
     13    return client.is_displayed(dialog)
     14 
     15 
     16 @pytest.mark.asyncio
     17 @pytest.mark.with_interventions
     18 async def test_enabled(client):
     19    assert not await is_dialog_shown(client)
     20 
     21 
     22 @pytest.mark.asyncio
     23 @pytest.mark.without_interventions
     24 async def test_disabled(client):
     25    assert await is_dialog_shown(client)