java - Where did my pop-up window go to? -
the case of disappearing pop-up window!
i click link , supposed bring little dialog pop-up window can change state (like ma, va, etc). click ok, pop-up window disappear , i'd on main window having fun wild abandon.
that's happens when manually. when through nifty selenium java project link gets clicked pop-up window briefly appears poof! it's gone , mean gone, not in background.
here's code sniipet:
webelement foo4 = driver.findelement(by.linktext("state:")); string mytext; mytext = foo4.gettext(); system.out.println("i got: " + mytext); foo4.click(); (do stuff in pop-up window down here)
i threw println in there make absolutely sure foo4 link clicked , is! sanity checks sometimes.
when click event happens, poof! pop-up window shows kinda ghost split second totally blank , it's gone. have no idea what's happening. intermittent. 10% of time pop-up window appear of time no dice.
i'm open ideas here. it's not matter of cycling through available windows yet, have main window that's not in picture yet.
any appreciated!
instead of clicking element, scrape href
or similar attribute holds url, driver.get(url);
or whatever looks in java.
that way can navigate url in main browser window , need there.
Comments
Post a Comment