I'm trying to access second level Popup in VCM using TestNG i.e I'm clicking on "Add" button on parent window and it opens then I have other field to add into subcontent but I'm not able select subcontentwindow.
Here is my code:
selenium.open("http://xyz.com/AppConsole");
selenium.type("name=j_username", "username");
selenium.type("name=j_password", "password!");
selenium.click("id=vign-login-button");
selenium.waitForPageToLoad("30000");
selenium.click("id=href_consoleMenus30");
selenium.waitForPageToLoad("30000");
selenium.click("link= Contents");
selenium.waitForPageToLoad("30000");
selenium.click("id=href_VignConsoleForm");
selenium.waitForPopUp("createContentInstance_undefined", "30000");
selenium.selectWindow("name=createContentInstance_undefined");
selenium.click("link=XYZ");
selenium.waitForPageToLoad("30000");
selenium.click("id=o12_hierarchyBrowserForm");
selenium.click("name=cmdOK");
selenium.waitForPageToLoad("30000");
selenium.type("id=ce_f508VgnVCM____", "Testing");
selenium.select("id=ce_060859310VgnVCM____", "label=Counting");
verifyTrue(selenium.isTextPresent("Forms"));
selenium.click("name=coe_relator_butn_add_2468d");
selenium.waitForPopUp("Add/Edit", "90000");
selenium.selectWindow("Add/Edit");
verifyEquals(selenium.getTitle(), "Add/Edit");