I'm new to Geb, and trying to use it to automate interactions on a site
that makes heavy use of nested iframes.
This is an example of the basic structure (leaving out some of the basic
markup not relevant to my question):
<iframe id="firstFrame">
<iframe id="secondFrame">
<iframe id="thirdFrame">
<form id="login_form">
<input id="email" type="text">
<input id="password" type="password">
<input class="action" value="Log in" id="login_button" type="submit">
</form>
</iframe>
</iframe>
</iframe>
My goal is to interact with elements in the "login_form" within the
thirdFrame.
I've tried a couple of different approaches using "withFrame()", along
these lines:
withFrame($("#firstFrame")) {
withFrame($("#secondFrame"))
{
withFrame($("#thirdFrame")) {
assert { $("#email").displayed }
}
}
}
...but that's not working. Since I'm also new to Groovy, this may just be
a lack of understanding of basic code syntax.
Can anyone suggest the correct syntax for interacting with nested iframes
in Geb?
--
You received this message because you are subscribed to the Google Groups "Geb
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/88a389b1-b6c9-4d72-8140-4efc00e7e5c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.