cancel
Showing results for 
Search instead for 
Did you mean: 

How to searching particular word on particular window/screen using Testcomplete.

SOLVED
Highlighted
Occasional Contributor

How to searching particular word on particular window/screen using Testcomplete.

Hi All,

 

I came up with one more query. 

 

My Query: 

I have a Desktop Application and in one particular screen i want to search for a particular word using Testcomplete.

 

Could any one please help me on how to search for particular word in particular screen using Testcomplete script Mode.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: How to searching particular word on particular window/screen using Testcomplete.

Hi thoshima

 

Here You have the best solution for searching text on the screen with testComplete:

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/...

 

Robot Happy

 

Let me know If You need any more help with this method.

View solution in original post

6 REPLIES 6
Highlighted
Occasional Contributor

Re: How to searching particular word on particular window/screen using Testcomplete.

If you have a specific location that you can get the alias of you can grab the wText or value of it then just

s = Aliases.java.MainWindow.null_layeredPane.ContentPane.SwingObject("JEditorPane","",0).wText

if "MyText" in s:

   Dostuff()

Highlighted
Occasional Contributor

Re: How to search particular word on particular window/screen using Testcomplete.

Okie, Let me try this

Thanks

Highlighted
Valued Contributor

Re: How to searching particular word on particular window/screen using Testcomplete.

Hi,

Identify the object that contains the property you need. For example, an Edit that has the property wText.

Then map your object and test its property's value within your test.

Use the object spy first to find the wanted object.

Highlighted
Community Leader

Re: How to searching particular word on particular window/screen using Testcomplete.

Hi thoshima

 

Here You have the best solution for searching text on the screen with testComplete:

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/...

 

Robot Happy

 

Let me know If You need any more help with this method.

View solution in original post

Highlighted
Occasional Contributor

Re: How to searching particular word on particular window/screen using Testcomplete.

Thanks,

 

Im trying this method, will let u know regarding this.

Highlighted
Community Manager

Re: How to searching particular word on particular window/screen using Testcomplete.

Thanks Community for a lot of useful information! 

 

Hi @thoshima , have you tried any of the suggested approaches? Has it been a success?  


Sonya Mihaljova
Community and Education Specialist
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?


Top Kudoed Authors