Omenia / robotframework-whitelibrary

Library for automating Windows GUI technologies with Robot Framework. WhiteLibrary wraps the White automation framework.
Apache License 2.0
54 stars 15 forks source link

How to pass xpath as locators? #181

Open muthuubalakan opened 4 years ago

muthuubalakan commented 4 years ago

I am trying to automate java application with White library.

In some cases, I have text. So, I use as follows.

Click Button text:Log in

In some cases, I have xpath, like this /Edit[@Name=\"User Name\"][@AutomationId=\"idToken\"]

Click Button id:/Edit[@Name=\"User Name\"][@AutomationId=\"idToken\"]

But I get error.

eeter commented 4 years ago

WhiteLibrary does not support xpath locators. For automating a Java application, see also: https://github.com/robotframework/SwingLibrary