We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Support the following iframe switch functionality.
iframe
Go.To<RegularPage>(). SwitchToFrame<FramePage>(By.Id("iframe-id")). TextBox.Set("abc"). SwitchToRoot<RegularPage>(). DoOtherStuff();
public class RegularPage : Page<_> { // Some regular page properties. public FramePage SwitchToFrame() { return SwitchToFrame<FramePage>(By.Id("iframe-id")); } }
public class FramePage : Page<_> { // Some frame page properties. public RegularPage SwitchBack() { return SwitchToRoot<RegularPage>(); } }
Go.To<RegularPage>(). SwitchToFrame(). TextBox.Set("abc"). SwitchBack(). DoOtherStuff();
SwitchToFrame(By.Id("iframe-id"), new FramePage(someArg))
SwitchToRoot(new RegularPage(someArg))
SwitchToFrame<FramePage>(By.Id("iframe-id"), temporarily: true)
SwitchToFrame(By.Id("iframe-id"), new FramePage(someArg), temporarily: true)
IWebElement frame = Driver.Get(By.Id("iframe-id")); SwitchToFrame<FramePage>(frame)
The text was updated successfully, but these errors were encountered:
#20 Add SwitchToFrame and SwitchToRoot methods to PageObject`1
1387a92
#20 Update comment of PageObject`1.SwitchToRoot method.
21f0b08
YevgeniyShunevych
No branches or pull requests
Support the following
iframe
switch functionality.Direct/In-test
Within page objects
Other
Pass an instance of the page object
Temporarily navigation
Pass an instance of IWebElement:
The text was updated successfully, but these errors were encountered: