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

How to select a popup in an iframe with Robot Framework / Selenium

$
0
0

I want to write a test case for a web application with Robot Framework and the Selenium library. The situation is that when a button is clicked, a popup page is shown within the webpage.This popup is inside an iframe and has its own <html> <body> etc.

I have a test that verifies if the popup page is opened by searching for the presence element x.

Things I have tried are:

1a. Select frame XPath=XPath iframe

1b. Element Text Should Be xxx

2a. Switch window title=title of popup that can be found within the <title> element.

2b. Element Text Should Be xxx

In both situations, the test fails. The popup page is opened but the error messages shown are:

  • Element with locator 'iframe' not found.
  • Unable to locate window with title 'xxx'.

I searched for similar problems but didn't find any solutions that helped my case.


Viewing all articles
Browse latest Browse all 98893

Trending Articles



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