I need to write a script where I can search with a keyword and test if a certain subject will show but I cannot manage to get the search id. This is my script.
*** Settings ***
Library SeleniumLibrary
Suite Setup Go to homepage
Suite Teardown Close All Browsers
*** Variables ***
${HOMEPAGE} https://www.mdh.se/utbildning/kurser
${BROWSER} chrome
*** Test Cases ***
Google cloud and find Industrial Systems in Cloud Computing
Google and check results cloud Industrial Systems in Cloud Computing
*** Keywords ***
Google and check results
[Arguments] ${searchkey} ${result}
Input Text id=occasionsTableen_UK_filter ${searchkey}
Wait Until Page Contains ${result}
Go to homepage
Open Browser ${HOMEPAGE} ${BROWSER}
And this is the error message
Google cloud and find Industrial Systems in Cloud Computing | FAIL |
Element with locator 'id=occasionsTableen_UK_filter' not found.