I am able to see the home page automated however when the microsoft sign in page is launched
it is not able to automated
using the appium inspector and accessibility inspector, the locator strategy is correctly set
the error seen is
Request failed with status 404 due to A session is either terminated or not started
This method defaults to 0.5 seconds before timeout. What happens if you increase that time? Has the page even finished loading? I would start with a large number and decrease once you’ve got it working.
Also, if the timeout is throwing some exception that in turn is calling deleteSession, you should try to catch the exception and handle it some other way if you aren’t ready to delete the session.
yes the page is fully loaded even with the default timeout for waitForDisplayed, I notice this message from the log
-1] 2022-08-17T05:46:35.955Z INFO webdriver: DATA {
[0-1] using: 'xpath',
[0-1] value: '//XCUIElementTypeTextField[@name="Enter your email or phone"]'
[0-1] }
[0-1] 2022-08-17T05:46:35.967Z INFO webdriver: COMMAND deleteSession()
[0-1] 2022-08-17T05:46:35.967Z INFO webdriver: [DELETE] http://localhost:4723/session/ae6b83e8-ed1f-40d2-823a-023ed821cd26
[0-1] 2022-08-17T05:46:36.217Z INFO webdriver: RESULT {
[0-1] 'element-6066-11e4-a52e-4f735466cecf': '0D000000-0000-0000-9573-010000000000',
[0-1] ELEMENT: '0D000000-0000-0000-9573-010000000000'
[0-1] }
[0-1] 2022-08-17T05:46:36.219Z INFO webdriver: COMMAND isElementDisplayed("0D000000-0000-0000-9573-010000000000")
[0-1] 2022-08-17T05:46:36.219Z INFO webdriver: [GET] http://localhost:4723/session/ae6b83e8-ed1f-40d2-823a-023ed821cd26/element/0D000000-0000-0000-9573-010000000000/displayed
[0-1] 2022-08-17T05:46:36.270Z WARN webdriver: Request failed with status 404 due to A session is either terminated or not started
[0-1] 2022-08-17T05:46:36.270Z INFO webdriver: Retrying 1/5
[0-1] 2022-08-17T05:46:36.270Z INFO webdriver: [GET] http://localhost:4723/session/ae6b83e8-ed1f-40d2-823a-023ed821cd26/element/0D000000-0000-0000-9573-010000000000/displayed
[0
as soon as it found the xpath for the email element in the microsoft page, it called the deleteSession
Do you have the ability to debug this code and step through? I’m not seeing anything abnormal. I feel like there is some side effect from a library or hook somewhere that might be obvious in a debug session.