Consider the following scenario: I need to click on the link name "testing" (name field) which it opens a window (confusion is what type of window it is, as there are no maximize, minimize options)
driver.getwindowhandle()
. In current scenario of my code: after I click on the "testing" link, the driver gets lost somewhere. Output of system.out.println(driver);
does not get printed until I close the window.
I applied thread.sleep(timeseconds)
, but again, no response.
What is the type of this window: containing text fields? How to get into it?
Step 1: Main Page
Step 2: (click on "testing" link => Loading... )
Step 3: (once loaded, new window appears)
Step 4: Here is the code: it returns no response after clicking on the link. It does not catch the window using handle. New window page load takes hardly 4 seconds.
这不是一个窗口,而是一个框架,您必须使用其ID或名称切换到框架,然后进入其中并执行操作,然后切换到DefaultContent()以从框架切换回
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.