📜  如何处理窗口 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:12.630000             🧑  作者: Mango

代码示例1
How do you handle windows?
- We use window handles for handling windows & tabs.

- A window handle is a randomly generated
  unique id for each window.
  
- We can use WindowHandles to switch in
  between different windows.
  
  
SYNTAX =
driver.getWindowHandle;-> returns current window handle
driver.getWindowHandles; return all current opened windows