Get help with testing, discuss unit testing strategies etc.


Post by SridharRS »

Scenario : When I click a button the modal window opens . I have to enter some text in the modal window where the entire text area is present inside the iframe tag

Frame id: XYZ , class : .x......
Click element: abcd

In this case how I can switch to iframe and click inside it . Any suggestion please

I tried 'SwitchTo' method but getting 'Win' is not defined . Please let us know how to switch frame in this case

Post by mats »

Please post your question in the Product forum you are referring to. Are you asking about Siesta? You can target iframes by putting an 'id' on them and using '->' in your query:
{click : '#myiframeId -> .someSelector' }

Post Reply