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

Can't read text from QTextBrowser #15

Closed
Zitrax opened this issue Jul 16, 2015 · 1 comment
Closed

Can't read text from QTextBrowser #15

Zitrax opened this issue Jul 16, 2015 · 1 comment

Comments

@Zitrax
Copy link
Contributor

Zitrax commented Jul 16, 2015

In a Qt app if there is a QTextBrowser element it's detected as a label by ldtp, it has type ControlType.Text.

However if I try to call ldtp.gettextvalue('window', 'lbl0') I get "Unable to find object: lbl0" since Text.cs does not include ControlType.Textamong it's candidates in Text::GetObjectHandle(). I added it there and recompiled and then I got the text value that I needed.

I am unsure if that is the proper fix though, should this type have been detected as something else ?

But otherwise it's a simple fix that solves my problem.

@nagappan
Copy link
Member

You are right, not sure how I missed that, can you please send a review ? Thanks

Zitrax added a commit to Zitrax/cobra that referenced this issue Jul 17, 2015
Fix for issue ldtp#15 to make it possible to
read text from QTextBrowser.
@Zitrax Zitrax closed this as completed Jul 17, 2015
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