Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Set<String> GetContextNames = driver.getContextHandles();
  2. for (String contextName : GetContextNames) {
  3. System.out.println(contextName);
  4. if (contextName.contains("WEBVIEW")) {
  5. driver.context(contextName);
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement