Using SST with iFrame

Asked by fagunbhavsar on 2013-08-19

Hi,

Currently, I am trying to automate a form submission, this form has iframe inside. I am trying to use "get_element_by_css", by putting iframe css class, but action doe not identify this. Please see image:

http://snag.gy/vYtMf.jpg

Then I gave a try with get_elements_by_css such that it might return list and one of the element from list could be accessed. When I tried to access list element - all it shows is, Index out of range.
Finally, I even try to identify element with unique identifier, i.e., get_elements_by_css('p:nth-child(1)>br:nth-child(1)'). But, the result is same.

May I know, how I can handle iframe element and complete my automation?

Thanks in advance.

Regards,
Fagun

Question information

Language:
English Edit question
Status:
Answered
For:
selenium-simple-test Edit question
Assignee:
No assignee Edit question
Last query:
2013-08-19
Last reply:
2013-08-22
Corey Goldberg (coreygoldberg) said : #1

> I am trying to use "get_element_by_css", by putting
> iframe css class, but action doe not identify this

I think that is the right approach. However I noticed your classes have spaces in the name. I think that might be the issue (though i'm not sure that's valid markup). Try supplying just the first class name. or else, try the whole class string, but escaping the spaces with backslash.

hth.

-Corey

Can you help with this problem?

Provide an answer of your own, or ask fagunbhavsar for more information if necessary.

To post a message you must log in.