Open nsavastejevs opened 6 years ago
Hi @nsavastejevs,
Can you expand further on what app is being used to test (if you're able to provide this information) and also paste page source (XML snapshot)?
Hi @nsavastejevs ,
Which app information you are trying to automate ? outlook or other app ?.
If it possible please share the code snippet.
Hi @hassanuz @rajeeshmenoth Here are pagesource files (can't attach .xml, so here are text files): Without inspect launched on remote Pagesource_debug - without inspect.txt With Inspect launched on remote Pagesource_debug - with inspect.txt Without Inpect.exe turned on, fields I need are not shown for that window in pagesource, so it's not possible to find them. As I currently know, Inspect should not have any dependencies to WinAppDriver. On local machine it's working fine. Settings (developer mode etc) are same as well on both local and remote.
It's not Outlook, other desktop app (using Chrome for rendering, so time to time it's problem to locate elements and I need to use XPath). Here is app I'm working with: https://openfin.co/partners/#28-stone Error occurs on 1st screen (login).
Hi @nsavastejevs ,
Try the following Xpath :
1) //Edit[@Name='Email']
2) //*[@LocalizedControlType='edit' and @Name='Email']
@rajeeshmenoth both selectors your provided are not working for me on remote. I initially was using quite similar selector:
{"using":"xpath","value":".//*[@LocalizedControlType='edit' and @Name='Email']"}
In comment above I attached pagesource files with Inspect launched and turned off.
When Inspect is not launched - there are no elements in main app window, according to data from pagesource.
Greetings,
I have following problem. When I'm running WinAppDriver on remote, it throws me error at the beginning of test:
Although, if I launch Inspect.exe on remote machine together with WinAppDriver.exe - it finds elements perfectly fine:
What could be an issue? Locally it works nice without any Inspect.exe launched, appears only when I switch to remote test execution. Also, I can use only XPath there, as window contains more than one element with similar Name and field has very few attributes, so switching to other way of finding elements is problem.
Thanks for help in advance!