Switch Context tO Web view Javascript

Viewed 16

So i use this function to switch context to web view in javascript

let contexts = driver.getContexts();
console.log(contexts)
let webview = driver.switchContext(contexts[1])

But after waiting so long, i got timeout, anyone knows the issue? I have add driver.pause(100000) as well but still the same result -> Timeout

Error: function timed out, ensure the promise resolves within 60000 milliseconds at Timeout. at listOnTimeout (internal/timers.js:555:17) at processTimers (internal/timers.js:498:7)

0 Answers
Related