Answer the question
In order to leave comments, you need to log in
How to use casperjs to get inside an iframe whose index changes dynamically?
Good afternoon The
task is to get data from an iframe
The problem is that this iframe does not have a name - so you won’t be able to enter using the name (more precisely, I don’t know how)
Using the second method - entering by index - also doesn’t really help, since there is about 20 iframes and they are always displayed in a random order
But I can accurately identify the div inside which the iframe I need sits and it (iframe) is there (inside this div) alone, since this div has a unique id (for example div#my_div)
How can tell casperjs to enter the iframe that is located exactly in div#my_div ?
PS: I tried to give this iframe a name with a script, and go by the name that was just given - it didn’t work
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question