Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winium Beginner: How to create Xpath or it could be possible to get Xpath from any inspect spy tool? I have just started working with automation of desktop application by using Winium+Java+Eclipse where an element have not it's automation id, classname and name so how it can be located in winium? Please help. #97

Open
RohitWinium opened this issue Mar 14, 2019 · 1 comment

Comments

@RohitWinium
Copy link

Winium Beginner: How to create Xpath or it could be possible to get Xpath from any inspect spy tool?

I have just started working with automation of desktop application by using Winium+Java+Eclipse where an element have not it's automation id, classname and name so how it can be located in winium? Please help.

@RohitWinium RohitWinium changed the title Winium Beginner: How to create Xpath or it could be possible to get Xpath from any inspect spy tool? Winium Beginner: How to create Xpath or it could be possible to get Xpath from any inspect spy tool? I have just started working with automation of desktop application by using Winium+Java+Eclipse where an element have not it's automation id, classname and name so how it can be located in winium? Please help. Mar 14, 2019
@nananand7
Copy link

Please find the few,

{:xpath => "//[(@LocalizedControlType='text')and(@classname='TextBlock')]"}
{:xpath => "//
[(@name='any')and(@classname='TextBlock')]"}
{xpath: "//*[contains(@LocalizedControlType,'header item') and contains(@classname,'GridViewHeaderCell')]"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants