I need to handle a pop up window on an eCommerce site using Robot Framework.
I'm unable to post screenshots of the actual site I am working on but It is similar situation to the following. I select the item I want to purchase
Then I click on the Buy it now Button and a mini window pops up as follows:
The problem I am having is that Robot is not picking up the mini pop up window. I tried using the select window keyword, Set Focus to Element keyword but no luck as the elements within the mini window are not being found.
Asked
Active
Viewed 7,222 times
1

Lee
- 59
- 2
- 10
1 Answers
1
I get the same issue with you today and below is the way that I did:
- Using
Inspect Element
to know exactly which type of popup (ex: iframe,...) - Get exactly locator of this iframe
- Using
Select Frame
keyword, then I can do everything with element on this popup
Below is my example:
Click Button id:btnAddNewProduct
Sleep 20s
Select Frame xpath://div[@id='ContentModel']//iframe
Log to console OK

StackzOfZtuff
- 2,534
- 1
- 28
- 25

Hong Dinh
- 11
- 1