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

not have ClickablePoint for my button #67

Open
erkantaylan opened this issue Jul 1, 2017 · 0 comments
Open

not have ClickablePoint for my button #67

erkantaylan opened this issue Jul 1, 2017 · 0 comments

Comments

@erkantaylan
Copy link

I have a button like

...
<Button Uid="refresh">
    <StackPanel>
        <icon/>
       <textblock/>
    </StackPanel>
</Button>
...

test code

...
Application medicine = new Application("path/to/my/program.exe");
medicine.Start("-m");
ByProperty winFinder = By.Uid("shell").AndType(ControlType.Window);
CruciatusElement win = CruciatusFactory.Root.FindElement(winFinder);

CruciatusElement btn = win.FindElementByUid("refresh");
btn.Click(MouseButton.Left);
btn.Click(MouseButton.Left);
...

test results

[14:36:08] [Debug] Element 'type: ControlType.Button, uid: refresh' not have ClickablePoint
[14:36:09] [Info] Click on 'type: ControlType.Button, uid: refresh' element at (-817.5, 272) BoundingRectangle center

Why cannot click it? My test project is .Net 4.6.2 and my program is .Net 4.0

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

1 participant