ebay key, new project lukan

This commit is contained in:
Lukáš Kaňka
2023-10-16 20:57:54 +02:00
parent 2d5d21c8e2
commit 5b2c518d9f
13 changed files with 153 additions and 34 deletions

View File

@ -0,0 +1,15 @@
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${browser} chrome
${url} https://www.ebay.com/
*** Keywords ***
Start test
open browser ${url} ${browser}
maximize browser window
Finnish TestCase
close browser

View File

@ -0,0 +1,20 @@
*** Settings ***
Library SeleniumLibrary
*** Keywords ***
Verify Search Results
input text //*[@id="gh-ac"] mobile
# kliknout na tlačítko můžeme více způsoby
#click button xpath://*[@id="gh-btn"]
press keys xpath://*[@id="gh-btn"] RETURN
page should contain výsledků mobile
Filter results by condition
click element //span[contains(text(),"Stav")]
sleep 3s
CLICK ELEMENT //span[normalize-space()="Nový"]
Verify filter results
# ověřit filtr že zobrazí Nový
# opravit
ELEMENT SHOULD CONTAIN //*[@id="s0-53-17-6-3-4[0]-3-2-1-list"]/li/div/a/div/text()