2023-10-16 21:40:50 +00:00
|
|
|
*** Settings ***
|
|
|
|
Library SeleniumLibrary
|
|
|
|
|
|
|
|
|
|
|
|
*** Variables ***
|
2023-10-17 09:00:26 +00:00
|
|
|
${search_text} books
|
2023-10-16 21:40:50 +00:00
|
|
|
|
2023-10-17 09:00:26 +00:00
|
|
|
@{search_text_list} book mobile travel robot gifts
|
|
|
|
#tímto do proměnné mohu zadat více hodnot, v testu pak text indexujeme jak 0 = záznam 1, 1 = 2 záznam. Začínáme nulou
|
|
|
|
#v testu už to zapíšeme místo @ s $
|
2023-10-16 21:40:50 +00:00
|
|
|
*** Keywords ***
|
|
|
|
Input Search Text and Click Search
|
2023-10-17 09:00:26 +00:00
|
|
|
input text //*[@id="gh-ac"] ${search_text_list}[1]
|
2023-10-16 21:40:50 +00:00
|
|
|
press keys xpath://*[@id="gh-btn"] RETURN
|
|
|
|
|
|
|
|
# Pokročilé vyhledávání
|
|
|
|
Click on Advanced Search Link
|
|
|
|
CLICK ELEMENT //*[@id="gh-as-a"]
|
2023-10-17 09:00:26 +00:00
|
|
|
|
|
|
|
Search for another text
|
|
|
|
INPUT TEXT input text //*[@id="gh-ac"] ${search_text}
|