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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -