Open EchoWang1024 opened 5 years ago
I have the same issue but for XCUIElementTypeTextField.
Inspector says that XCUIElementTypeTextField is enabled and visible.
PageSource says <XCUIElementTypeTextField type="XCUIElementTypeTextField" value="elementName" enabled="true" visible="true" x="61" y="162" width="298" height="48"/>
findElements(By.className("XCUIElementTypeTextField")) finds the element on the screen.
But I get "Code=1 "The element '"elementName" TextField' is not visible on the screen and thus is not interactable" when I try to clear() or click() the element.
List <IOSElement> fields = getIOSDriver().findElements(By.className("XCUIElementTypeTextField"));
fields.get(0).clear();
fields.get(0).sendKeys("text"); //first element works
locateElementAndClick(done);
fields.get(1).sendKeys("5"); //this fails
locateElementAndClick(done);
Appium logs https://gist.github.com/deedora/03deba2a2210b30789b5742348595fb6
Xcode 10.1 real device iOS 12.1 Appium 1.10.0
Any updates on this issue? I am also facing the same issue Web driver exception: The following error occurred: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 'The element ''ILMatchTableViewCell_matchCell' Cell' is not visible on the screen and thus is not interactable' UserInfo={NSLocalizedDescription=The element ''ILMatchTableViewCell_matchCell' Cell' is not visible on the screen and thus is not interactable}
Is this specific to Appium 1.10.0 or it is there on previous versions also? I am not aware about this issue on previous versions. Will switching back to 1.9.1 fix this issue ?
Xcode 10.1 Simulator device iOS 12.1 Appium 1.9.0 Same issue with send_keys, Not sending for other elements
WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 “The element ‘“500" TextField’ is not visible on the screen and thus is not interactable” UserInfo={NSLocalizedDescription=The element ‘“500” TextField’ is not visible on the screen and thus is not interactable}
any update ?
Mine got resolved. I have told my developers to look into this. And they have added some accessibility id related lines of code to their Swift. And its working Now! Confirmed its not a problem with Appium
I have the same issue. The element if found (but sometimes have a weird id 00000000-0000-0000-0000-000000000000
) but I get the error message mentionned above.
Tried with both webdriver/appium/browserstack and webdriverio/appium/browserstack.
The element is well visible and interactable with from appium GUI.
@giann Ask your developers to try adding accessibility.identifier property set to True to that view
I am getting the same error on random fields where accessibility identifier is set on the element
The problem
hi, An error occurred when I was using appium for element operation.
Environment
Appium logs