-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling iFrames #2
Comments
Sorry for the delay in getting back. I guess this is an issue, particularly for @selvakn : thoughts? However, for other For a page that has
Define the Page Class with:
And then use it in the specs as:
|
Yeah, I could see this working. A key thing, I believe, is ease of creating the element declarations in the page object so that you have to reference what you need in as few places as possible. So for example, an "ideal" might be something like this:
and also this:
In these cases, everything I need to understand about the page, and the elements within it, can be understood solely in the context of that page. That said, I put "ideal" in quotes because that's purely my opinion. I'm still learning Capybara so I'm not sure what is and isn't possible with these context blocks. |
This isn't so much an issue as it is a question about a potential issue. In using Capypage, what's the preferred idiom for accessing elements in an iframe? Or more generally the idea of the "within" construct from Capybara.
The text was updated successfully, but these errors were encountered: