Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97830

How to fix "Element with locator not found" in robot framework

$
0
0

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.

Viewing all articles
Browse latest Browse all 97830

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>