How to handle credit card iframe?


I have difficulty to popup transactions from credit cards, where the iframe popup is always followed by a number that changes every time the transaction (example: iframe_popup_1530173421003, in another transaction becomes iframe_popup_1530518446530) and the number is generated by credit card.

I’ve used the Switch to window title option, switch to window index and it still does not work. I do not use the switch to window url because the url is always changed generated by the credit card.

How would this iframe be recognized as an object and I can enter its credit card details?


try to use xpath like :


this should catch iframe popup - risk is when there are 2 popups at same time

1 Like