If you have an Angular App that loads another Non-Angular App inside an iframe, getting objects inside iframe may be difficult.
Here is the solution I used:
describe('Inside non-angular iframe', function () {
it('you can access iframe objects.', function () {
...
_form.goToIFrame();
//work with iframe objects
_form.goToDefault();
});
where _form.goToIFrame(); and _form.goToDefault(); means:
goToIFrame: function () {
browser.switchTo().frame(browser.driver.findElement(by.tagName('iframe')));
browser.ignoreSynchronization = true;
},
goToDefault: function () {
browser.driver.switchTo().defaultContent();
browser.ignoreSynchronization = false;
browser.waitForAngular();
}
That's all.
Happy testing and... make it green, becomes a dream :).
Labels
selenium
(20)
microsoft tools
(9)
continuous integration
(8)
performance
(7)
protractor
(7)
Applitools
(2)
Postman
(2)
agile
(2)
browser extensions
(2)
conferences
(2)
istqb
(2)
project management
(2)
specflow
(2)
autoit
(1)
browserstack
(1)
cypress
(1)
qa
(1)
sikuli
(1)
static testing
(1)
testing events
(1)
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Introduction Recently I've been asked by a blogger how can I use SpecFlow to write a test in Visual Studio. " I am a beginner i...
-
Introduction In this article we will transcribe the java code into c# for the following links: http://ralucasuditu-softwaretesting.blogsp...
-
How my Desktop looks like :)? This is an useful wall-chart from Rosetta Stone and Cookbook that covers popular technologies as XPath...
No comments:
Post a Comment