diff --git a/RobotSelenium/Lukan/.idea/.gitignore b/RobotSelenium/Lukan/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/RobotSelenium/Lukan/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/RobotSelenium/Lukan/.idea/Lukan.iml b/RobotSelenium/Lukan/.idea/Lukan.iml new file mode 100644 index 0000000..74d515a --- /dev/null +++ b/RobotSelenium/Lukan/.idea/Lukan.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/RobotSelenium/Lukan/.idea/inspectionProfiles/profiles_settings.xml b/RobotSelenium/Lukan/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/RobotSelenium/Lukan/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/RobotSelenium/Lukan/.idea/misc.xml b/RobotSelenium/Lukan/.idea/misc.xml new file mode 100644 index 0000000..6ed8173 --- /dev/null +++ b/RobotSelenium/Lukan/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/RobotSelenium/Lukan/.idea/modules.xml b/RobotSelenium/Lukan/.idea/modules.xml new file mode 100644 index 0000000..7fe8a29 --- /dev/null +++ b/RobotSelenium/Lukan/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/RobotSelenium/Lukan/.idea/vcs.xml b/RobotSelenium/Lukan/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/RobotSelenium/Lukan/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/RobotSelenium/Mentor/Resources/CommonFunctionality.robot b/RobotSelenium/Mentor/Resources/CommonFunctionality.robot new file mode 100644 index 0000000..8d9f7d1 --- /dev/null +++ b/RobotSelenium/Mentor/Resources/CommonFunctionality.robot @@ -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 \ No newline at end of file diff --git a/RobotSelenium/Mentor/Resources/eBay_UserDefinedKeywords.robot b/RobotSelenium/Mentor/Resources/eBay_UserDefinedKeywords.robot new file mode 100644 index 0000000..0a612b6 --- /dev/null +++ b/RobotSelenium/Mentor/Resources/eBay_UserDefinedKeywords.robot @@ -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() diff --git a/RobotSelenium/Mentor/Results/log.html b/RobotSelenium/Mentor/Results/log.html index 9de6f4a..f810f1a 100644 --- a/RobotSelenium/Mentor/Results/log.html +++ b/RobotSelenium/Mentor/Results/log.html @@ -1806,25 +1806,25 @@ function stopPropagation(event) { window.output = {};