I have a problem when working with iframe using Robot framework and Selenium2Library. It throws error:
WebDriverException: Message: unknown error: unhandled inspector error: {"code":- 32000,"message":"Cannot find context with specified id"} (Session info: chrome=55.0.2883.87) (Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 6.1.7601 SP1 x86_64) My test code is:
Fill In Description ${description} Wait Until Element Is Visible ${FRAME} 40 Select Frame ${FRAME} wait until page contains element ${IFRAME BODY} Click Element ${IFRAME BODY} wait until page contains element ${IFRAME BODY} Clear Element Text ${IFRAME BODY} wait until page contains element ${IFRAME BODY} Input Text ${IFRAME BODY} ${description} Unselect Frame It fails in step Input Text ${IFRAME BODY} ${description}
Btw I reuse this keyword for more pages where this iframe occurs but it fails only in once exact case - but the html code is the same for all the iframes, so really dont understand why it works just sometimes..
Will be glad for any help.
${IFRAME BODY}represent? By the name it sounds like an iframe element or the body inside an iframe, in which case I don't understand why you're trying to input text into an iframe (versus an input element).WebDriverWait(driver,10).until(EC.presence_of_element_located((By.XPATH,myxpath)))Similar to what @neliCZka is reporting, it sometimes hangs on this line, which is re-iterated several times, but most other times, it works fine. I wish I knew how this error is different than, say, an "element not found" error or a "timeout" error.