protractor - Accessing Iframe inside Iframe -
i working on angular app, runs inside non-angular page. on angular page, have iframe(iframe2) inside iframe(iframe1). able move iframe1 non angular page, not able access iframe2 iframe1 throws error "angular not found on window"
it('iframes testing',function(){ brower.driver.navigate().to('url') browser.driver.ignoresynchronization = true; browser.driver.findelement(by.id('username_str')).sendkeys("username"); browser.driver.findelement(by.id('password')).sendkeys("password"); browser.driver.findelement(by.name('submit')).click(); browser.driver.ignoresynchronization = false; browser.driver.switchto().frame(0); browser.waitforangular(); browser.driver.switchto().frame(0); element(by.model('formname')).click(); });
Comments
Post a Comment