This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
5 / 5
May 2018

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.com2” from accessing a frame with origin “https://www.mytestapp.com1”. 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

ios 11.2
appium 1.7.2
xcode 9.2

  • created

    Apr '18
  • last reply

    May '18
  • 4

    replies

  • 450

    views

  • 2

    users

  • 3

    links

Thanks @Gunjan_Gupta , I did see that, but unfortunately, the web wrapped up in the native app is pointed to the live environment and hence the dev’s wouldnt do that change

23 days later

solution that worked is to get the url using driver.get(url) and then do the actions as normal