diff --git a/RobotSelenium/Mentor/Resources/PageObjects/HeaderPage.robot b/RobotSelenium/Mentor/Resources/PageObjects/HeaderPage.robot
index 5727d16..379c072 100644
--- a/RobotSelenium/Mentor/Resources/PageObjects/HeaderPage.robot
+++ b/RobotSelenium/Mentor/Resources/PageObjects/HeaderPage.robot
@@ -3,14 +3,19 @@ Library SeleniumLibrary
*** Variables ***
+${search_text} books
-
-
+@{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 $
*** Keywords ***
Input Search Text and Click Search
- input text //*[@id="gh-ac"] mobile
+ input text //*[@id="gh-ac"] ${search_text_list}[1]
press keys xpath://*[@id="gh-btn"] RETURN
# Pokročilé vyhledávání
Click on Advanced Search Link
CLICK ELEMENT //*[@id="gh-as-a"]
+
+Search for another text
+ INPUT TEXT input text //*[@id="gh-ac"] ${search_text}
\ No newline at end of file
diff --git a/RobotSelenium/Mentor/Resources/PageObjects/SearchResultsPage.robot b/RobotSelenium/Mentor/Resources/PageObjects/SearchResultsPage.robot
index c566156..cefbb34 100644
--- a/RobotSelenium/Mentor/Resources/PageObjects/SearchResultsPage.robot
+++ b/RobotSelenium/Mentor/Resources/PageObjects/SearchResultsPage.robot
@@ -1,9 +1,15 @@
*** Settings ***
Library SeleniumLibrary
+Resource ../../Resources/PageObjects/HeaderPage.robot
+
+*** Variables ***
+${search_result} výsledků
+
*** Keywords ***
+# zde jsem si vytvořil proměnou na vyhledávání a připojím proměnou s HeaderPage
Verify Search Results
- page should contain výsledků mobile
+ page should contain ${search_result} ${search_text_list}[1]
Select product condition
diff --git a/RobotSelenium/Mentor/Results/log.html b/RobotSelenium/Mentor/Results/log.html
index 7b70136..42d40e5 100644
--- a/RobotSelenium/Mentor/Results/log.html
+++ b/RobotSelenium/Mentor/Results/log.html
@@ -1806,31 +1806,31 @@ function stopPropagation(event) {
window.output = {};
Verify that you have JavaScript enabled in your browser.
+
Make sure you are using a modern enough browser. If using Internet Explorer, version 11 is required.
+
Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/RobotSelenium/Mentor/Results/output.xml b/RobotSelenium/Mentor/Results/output.xml
index daef4d0..b9665e8 100644
--- a/RobotSelenium/Mentor/Results/output.xml
+++ b/RobotSelenium/Mentor/Results/output.xml
@@ -1,5 +1,5 @@
-
+
@@ -7,53 +7,54 @@
${url}${browser}Opens a new browser instance to the optional ``url``.
-Opening browser 'chrome' to base url 'https://www.ebay.com/'.
-
+Opening browser 'chrome' to base url 'https://www.ebay.com/'.
+Maximizes current browser window.
-
+
-
+//*[@id="gh-ac"]
-mobile
+${search_text_list}[1]Types the given ``text`` into the text field identified by ``locator``.
-Typing text 'mobile' into text field '//*[@id="gh-ac"]'.
-
+Typing text 'mobile' into text field '//*[@id="gh-ac"]'.
+xpath://*[@id="gh-btn"]RETURNSimulates the user pressing key(s) to an element or on the active browser.
-Sending key(s) ('RETURN',) to xpath://*[@id="gh-btn"] element.
-Pressing special key RETURN to element.
-Releasing special key RETURN.
-
+Sending key(s) ('RETURN',) to xpath://*[@id="gh-btn"] element.
+Pressing special key RETURN to element.
+Releasing special key RETURN.
+
-
+
-výsledků mobile
+${search_result}
+${search_text_list}[1]Verifies that current page contains ``text``.
-Current page contains text 'výsledků mobile'.
-
+Current page contains text 'výsledků'.
+
-
+Closes the current browser.
-
+
-
+This test case verifies the basic searchFunctional
-
+
@@ -61,37 +62,37 @@
${url}${browser}Opens a new browser instance to the optional ``url``.
-Opening browser 'chrome' to base url 'https://www.ebay.com/'.
-
+Opening browser 'chrome' to base url 'https://www.ebay.com/'.
+Maximizes current browser window.
-
+
-
+//*[@id="gh-as-a"]Click the element identified by ``locator``.
-Clicking element '//*[@id="gh-as-a"]'.
-
+Clicking element '//*[@id="gh-as-a"]'.
+
-
+Closes the current browser.
-
+
-
+This test case verifies the advanced searchFunctional
-
+Basic Search Funcianality
-
+
@@ -105,7 +106,7 @@
-Error in file 'C:\Users\lukas\Mega\Data\GitHub\Robot_Framework\RobotSelenium\Mentor\Resources\PageObjects\SearchResultsPage.robot' on line 8: Creating keyword 'Select product condition' failed: User keyword cannot be empty.
-Error in file 'C:\Users\lukas\Mega\Data\GitHub\Robot_Framework\RobotSelenium\Mentor\Resources\PageObjects\SearchResultsPage.robot' on line 11: Creating keyword 'Select delivery options' failed: User keyword cannot be empty.
+Error in file 'C:\Users\lukas\Mega\Data\GitHub\Robot_Framework\RobotSelenium\Mentor\Resources\PageObjects\SearchResultsPage.robot' on line 14: Creating keyword 'Select product condition' failed: User keyword cannot be empty.
+Error in file 'C:\Users\lukas\Mega\Data\GitHub\Robot_Framework\RobotSelenium\Mentor\Resources\PageObjects\SearchResultsPage.robot' on line 17: Creating keyword 'Select delivery options' failed: User keyword cannot be empty.