Everything below this, i.e. in the div id=”root”, is not ‘available’ for Robot Frameworks.
In some situations, this is solvable to use Select Frame to make the elements visible for Robot Framework. In other cases (like this one) does not have (i)frames however. Does anyone have an idea how to get around this?
The code is this:
SeleniumLibrary.Open Browser ${URL} ${BROWSER}
SeleniumLibrary.Maximize Browser Window
SeleniumLibrary.Wait Until Page Contains Element id=ggcSearchInput
SeleniumLibrary.Input Text id=ggcSearchInput 3825EE
SeleniumLibrary.Wait Until Page Contains Element id=ggcSuggestionList-9
SeleniumLibrary.Click Element id=ggcSuggestionList-9
SeleniumLibrary.Wait Until Page Contains Beschikbaar voor dit adres
SeleniumLibrary.Wait Until Page Contains Meest bekeken en besteld
SeleniumLibrary.Scroll Element Into View id=card_heading_product-riV7E6GW8OG6Topotijdreis.nl
SeleniumLibrary. Click Element id=card_heading_product-riV7E6GW8OG6Topotijdreis.nl
.
SeleniumLibrary.Click Element id=searchWidget-input
SeleniumLibrary.Input Text id=searchWidget-input Amersfoort
SeleniumLibrary.Click Element id=searchWidget-suggestion-item-0
SeleniumLibrary.Click Element xpath=//*[@id="root"]/div/div[2]/div[1]/button