Selenium - Pop Up window
I am testing the Router UI using selenium. I am using cisco routers. I am pinging a website and the router opens a pop up window showing the Ping statistics. The selenium ide is recording the popup window as " Ping table " but when i am running it the ide shows an error.
I want to verify and validate the data in the pop up window . i tried " select window " , get win ids " , win names , nothing seems to be working. I am using python in selenium .
code below
sel.open("/Diagnostics.asp")
sel.click("ping_button")
sel.wait_for_page_to_load("30000")
sel.click("ping_button")
sel.wait_for_page_to_load("30000")
------- it fails for all the steps bel开发者_运维技巧ow
sel.wait_for_pop_up("PingTable", "30000")
------ pop up window -----> ping table ------------
sel.select_window("name=PingTable")
self.failUnless(sel.is_text_present("5 Packets transmitted, 5 Packets received, 0% Packet loss"))
nothing seems to work ......
I'd need to reproduce this locally to be able to answer definitively. The only thing that comes to mind right now is that you say the IDE identifies it as "Ping table" but in your python you refer to it as "PingTable". It might be a typo on your behalf, but maybe not.
精彩评论