I am trying to switch context to iframe to automate a login frame in a hybrid app I am automating. All the other web elements are being identified, but while I try to switch context to this iframe, its throwing the following error
An unknown server-side error occurred while processing the command. Original error: Error while executing atom: Blocked a frame with origin “https://m.mytestapp.com” from accessing a frame with origin “https://www.mytestapp.com”. Protocols, domains, and ports must match. (status: 18) (WARNING: The server did not provide any stacktrace information).
Code used : driver.switchTo().frame(nameofIframe);
I have been stuck with this for quite a while , not being able to proceed with automation on Ios as if the login screen doesnt work, I wouldnt be able to navigate further . Kindly help