R
R
Rodion Yurchenko2018-05-30 17:53:34
PhantomJS
Rodion Yurchenko, 2018-05-30 17:53:34

How to get a list of frames available to Casperjs?

Good afternoon
I use casperjs
There is a page on which there are 5-8 iframes - absolutely "impersonal" - that is, the bottom has neither id nor name attributes
, Casper has the ability to "go" inside the frame using the command

this.withFrame(3, function(){
   // inner code
});

In order for Casper to understand - which frame I want to get into - I give him a serial number (in the example it is number 3)
Question:
How can I look at the entire array of available frames?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question