Skip to content

Unable to click on the intended element #22

Description

@pavanturlapati

Hi,
We are trying a Proof of Concept on one of our existing Windows Application using Winium and unfortunately when we are trying to click on a button it is clicking on the other button.

Any help is really appreciated.

Intended Object when Spy from UISpy tool

image

Object which it is clicking

image

Code being used for clicking

if (objElement.getAttribute("AutomationId").trim().
* equalsIgnoreCase("RingSalesBtn")) {
* System.out.println(objElement.getAttribute(
* "AutomationId").trim());
* System.out.println(objElement.getAttribute(
* "ControlType").trim());
* System.out.println(objElement.getAttribute( "ClassName").trim());
* System.out.println("+++++++++++++++"); objElement.click();

On a side note - It is working perfectly when using the Cruciatus framework and we wanted to use Java bindings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions