When i click on the Link , a Popup opens up. However couldn't able to work 
on the fields of popup as protractor can't locate the elements and then it 
gets timedout.
Popup is the new window popup.  it has 2 HTML ,one is the outer window and 
other is containing the form. I want to locate the values in the form but 
couldn't able to do it.
Following is the code in protractor
  performancePage.go();
    logger.info('Info', 'Navigating to performance Page');
    helper.isElementVisible(performancePage.performanceTab);
    performancePage.performanceTab.click();
    element(by.id("ButtonAddProduct")).click();
    browser.driver.sleep(4000)
   var  handlePromise = browser.getAllWindowHandles();
    var handles = handlePromise.then(function (handles) {
        console.log(handles)
        popUpHandle = handles[1];
        var handle = browser.switchTo().window(popUpHandle);
        handle = browser.getWindowHandle();
        expect(handle).toEqual(popUpHandle);
        browser.driver.executeScript('window.focus();');
    });
    //helper.isElementVisible(performancePage.addProduct);
    //performancePage.addProduct.click();
    helper.isElementVisible(element(by.id("form1")))
Also in console.log, its only showing 1 window handle and not of the Popup 
handle
I have already tried
driver.switchto().ActiveElement()
driver.switchto().window(1)
Also ran the scenario using the SELENIUM IDE but that also failed.
But nothing is working out.
attached is the HTML and the popup of the issue

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

<<< text/html; charset=US-ASCII; name=innerHTML.html: Unrecognized >>>

Reply via email to