ios – Appium/XCUITest – Guide with Apple pay button not clickable

0
19
ios – Appium/XCUITest – Guide with Apple pay button not clickable


I’m writing some E2E assessments with Appium 2, newest XCUITest and Python. I stumbled upon an issue. For some motive, despite the fact that I see the component and its Accessibility ID/XPATH (screenshot hooked up), I’m unable to click on it as I get the error under:

NoSuchElementError: A component couldn't be positioned on the web page utilizing the given search parameters.
at XCUITestDriver.doNativeFind

enter image description here

Right here is my click on code and driver configuration.

    'ios': (AppiumBy.ACCESSIBILITY_ID, 'Guide with Apple Pay'), # tried XPATH as properly

    def pay_with_apple_pay(self):
    self.wait_for_element_to_be_displayed(self.privacy_policy_link[self.os])
    self.wait_for_element_clickable(self.change_payment_method_button[self.os]).click on()
    self.wait_for_element_clickable(self.apple_pay_select[self.os]).click on()
    self.wait_for_element_clickable(self.book_with_apple_pay_button[self.os]).click on()




    choices = XCUITestOptions()
    choices.platform_name="iOS"
    choices.platform_version = config['ios']['platform_version']
    choices.device_name = config['ios']['device_name']
    choices.automation_name="XCUITest"
    choices.auto_accept_alerts = True
    choices.no_reset = False
    choices.is_headless = config['ios']['is_headless']
    choices.set_capability('showXcodeLog', True)
    choices.set_capability('appium:maxTypingFrequency', 10)
    choices.set_capability('simpleIsVisibleCheck', True)
    choices.set_capability('appium:settings[snapshotMaxDepth]', 62)
    choices.set_capability('appium:settings[pageSourceExcludedAttributes]', ['visible'])
    choices.set_capability('appium:settings[customSnapshotTimeout]', 500)
    choices.set_capability('appium:includeSafariInWebviews', True)
    choices.set_capability('appium:isInspectable', True)
    choices.set_capability('appium:webviewConnectTimeout', 9000)

I can discover another component no drawback. Undecided why I can not click on Pay with Apple Pay, any data is appreciated.

LEAVE A REPLY

Please enter your comment!
Please enter your name here