Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set<String> GetContextNames = driver.getContextHandles();
- for (String contextName : GetContextNames) {
- System.out.println(contextName);
- if (contextName.contains("WEBVIEW")) {
- driver.context(contextName);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement