Hi Tolga,
I'm curious why you are not using ARC or the appium inspector? This would make identifying your elements quite a bit easier than the raw xml.
It's hard to tell what identifier to use based on this xml. It really comes down to answering the question: "what makes window 2 truly unique from window 1?". this can be anything, really.
The key is, you want to key on an element that won't change over time. The label is usually the best for that.
I can't tell for sure, but it looks like your UIAStaticText name= values between windows 1 and 2 differ. So you can do an assertion based on the text command:
Examples. I'm using Ruby but translate to whichever language makes sense for you. set my_timeout to any integer (# of seconds) you want.
A possible excerpt from your page object for window 1
def assert_exists
wait = Selenium::WebDriver::Wait.new :timeout => my_timeout
wait.until { text("Kabul Et ve Devam Et"}
end
def assert
self.assert_exists
end
A possible excerpt from your page object for window 2
def assert_exists
wait = Selenium::WebDriver::Wait.new :timeout => my_timeout
wait.until { text("Giris? Ekran?"}
end
def assert
self.assert_exists
end
Hope this helps.