LluisRamon / relenium

Easy and powerful web scraping with Selenium
http://lluisramon.github.io/relenium/
33 stars 4 forks source link

Switching frames functionality: does it exist, if not would it be costly to add? #12

Open slowlysteadily opened 10 years ago

slowlysteadily commented 10 years ago

Still getting to grips with Relenium and it has been a useful learning experience. One problem I'm having is that I can't find a way to switch frames in a multi-frame page. I have found many Selenium questions on Stack Overflow related to this (example) but I can't find a way to do this in Relenium.

Does this functionality exist? If not, would it require a huge effort to implement?

aleixrvr commented 10 years ago

When you say switching to frames you mean to another window?

slowlysteadily commented 10 years ago

I was thinking of switching to another frame within the same browser windows. for example this page has two frames (see below). I would like to be able to set the options in the lefthand frame then switch to the righthand frame and change various values there.

From the link above, the page seems to have two frames:

<FRAMESET FRAMESPACING="0" COLS="240,*" FRAMEBORDER="NO" BORDER="0">
    <FRAME FRAMESPACING="0" NORESIZE="NORESIZE" name="left" FRAMEBORDER="0" BORDER="0" SRC="left.html" />
    <FRAME FRAMESPACING="0" NORESIZE="NORESIZE" name="right" FRAMEBORDER="0" BORDER="0" SRC="./prod4/prod4TsMkEntry.html" />
</FRAMESET>
aleixrvr commented 10 years ago

It seems that this functionality has to be implemented. We will do so, but it will take 2-3 weeks (we are quite busy now, if we find time it will take less).

slowlysteadily commented 10 years ago

Guys, thanks for looking into this and confirming the situation. I'm in no hurry.