I am new to python, Below are the snippets we tried and failed to switch to web view from native view
assuming we have an initialized
driver object for an app
switch to webview
webview = driver.contexts.last
do some webby stuff
switch back to native view
do more native testing if I want
Result : Shows driver exception
Can't switch context to webview
Result : NoSuchContextException: Message: No such context found.
Is this the correct approach or is there any other way.Could anyone please help me if you have faced the same issue and resolved it.
Thanks in advance.