údržba
This commit is contained in:
BIN
AAA/pokus/aaatest/__pycache__/aaa.cpython-311-pytest-7.4.0.pyc
Normal file
BIN
AAA/pokus/aaatest/__pycache__/aaa.cpython-311-pytest-7.4.0.pyc
Normal file
Binary file not shown.
BIN
AAA/pokus/aaatest/__pycache__/novy.cpython-311-pytest-7.4.0.pyc
Normal file
BIN
AAA/pokus/aaatest/__pycache__/novy.cpython-311-pytest-7.4.0.pyc
Normal file
Binary file not shown.
17
AAA/pokus/aaatest/aaa.py
Normal file
17
AAA/pokus/aaatest/aaa.py
Normal file
@ -0,0 +1,17 @@
|
||||
from playwright.sync_api import Page, expect
|
||||
|
||||
|
||||
def test_example(page: Page) -> None:
|
||||
page.goto("https://www.aaaauto.cz/")
|
||||
page.get_by_role("button", name="Přijmout vše").click()
|
||||
page.get_by_role("button", name="Značka Vyberte značku").click()
|
||||
page.get_by_text("Škoda").first.click()
|
||||
page.get_by_role("button", name="Model Vyberte model").click()
|
||||
page.get_by_text("Citigo").first.click()
|
||||
page.get_by_role("button", name="Rok Vyberte stáří vozu").click()
|
||||
page.get_by_text("Do 10 let").click()
|
||||
page.get_by_role("button", name="Cena Vyberte cenu").click()
|
||||
page.get_by_text("Do 200 000 Kč", exact=True).click()
|
||||
page.get_by_role("button", name="Kategorie Vyberte kategorii").click()
|
||||
page.locator("#hpFilterNG").get_by_text("Úsporné vozy").click()
|
||||
page.get_by_role("button", name="Hledat").click()
|
8
AAA/pokus/aaatest/novy.py
Normal file
8
AAA/pokus/aaatest/novy.py
Normal file
@ -0,0 +1,8 @@
|
||||
from playwright.sync_api import Page, expect
|
||||
|
||||
|
||||
def test_example(page: Page) -> None:
|
||||
page.goto("https://www.google.cz/?gws_rd=ssl")
|
||||
page.get_by_role("button", name="Přijmout vše").click()
|
||||
page.get_by_label("Najít").click()
|
||||
page.get_by_label("Najít").fill("test")
|
2
AAA/pokus/aaatest/pytest.ini
Normal file
2
AAA/pokus/aaatest/pytest.ini
Normal file
@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
addopts = --browser chromium --headed --slowmo 1000
|
Reference in New Issue
Block a user