I have such environment Appium + iOS Simulator + Java. I have to test such case:
- I click on button in App
- My app is going to website
- I need to check the URL
I searched this problem and realized that webdriver for iOS is not switching between app and browser that is why I can't use commonly used code:
driver.getCurrentUrl();
So, I decided to check If the URL which I've just clicked is correct or not. But I don't know how to get this URL. May be somebody has experience in that issue?
I decided to clarify: I am into iOS native App pressing on button and after this I'm redirecting to the safari on the some URL. Can I have some possibilities to know this URL without safari (in the moment when I'm still inside App).