I am testing application with GUI by Krypton Component Factory.
Problem I have is related to "WindowsForms10.Window.8.app.0.bb8560".
Ranorex recognizes this object in large, but I need to read dynamic text embedded to this object (search result).
How I can read the text with Ranorex please?
WindowsForms10.Window.8.app.0.bb8560 Krypton Component
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component
Hi,
How to create a Ranorex Snapshot
Regards,
Peter
Ranorex Team
Please would it be possible to post us a Ranorex Snapshot of this control?EugeneF wrote:Ranorex recognizes this object in large, but I need to read dynamic text embedded to this object (search result).
How I can read the text with Ranorex please?
How to create a Ranorex Snapshot
Regards,
Peter
Ranorex Team
Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component
I attached here the snapshot.
Thanks!
Thanks!
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component
Hi,
I am not sure if I completely got the question, what did you mean with
Maybe you can describe it more detailed?
Did you mean that you want to check the text of each cell of the table, if so you can iterate through the table like this:
Regards,
Markus
Ranorex Support Team
I am not sure if I completely got the question, what did you mean with
?Ranorex recognizes this object in large, but I need to read dynamic text embedded to this object (search result)
Maybe you can describe it more detailed?
Did you mean that you want to check the text of each cell of the table, if so you can iterate through the table like this:
var tableKdgSearchResults = repo.FormVertafore_Pipeline_Manag.TableKdgSearchResults; IList<Row> rowList = tableKdgSearchResults.Rows; foreach(Row row in rowList){ IList<Cell> cellList = row.Cells; foreach(Cell cell in cellList){ if(cell.Text == "yourText"){ ... } } }You can also check just specific cells, or rows, it depends on what you want.
Regards,
Markus
Ranorex Support Team
Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component
Markus,
You are talking about embedded grid. I do not have problem with that and I can read text out of it.
I am talking however, about text inside of the control "17 matches found". That's I need to read.
You are talking about embedded grid. I do not have problem with that and I can read text out of it.
I am talking however, about text inside of the control "17 matches found". That's I need to read.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component
Hi!
In your snapshot I see that this is a third Partycontrol "ComponentFactory.Krypton.Toolkit.KryptonHeaderGroup" and Ranorex is not able to get out the status element text "39 matches found" by default.
But you can write an Method in your application which is providing this data and you can call it from a Ranorex module via RemoteInvokeMethod.
To provide these data via an RemoteInvokeMethod please read our blog about Ranorex Remote Invoke Method.
Regards,
Martin
Ranorex Support Team
In your snapshot I see that this is a third Partycontrol "ComponentFactory.Krypton.Toolkit.KryptonHeaderGroup" and Ranorex is not able to get out the status element text "39 matches found" by default.
But you can write an Method in your application which is providing this data and you can call it from a Ranorex module via RemoteInvokeMethod.
To provide these data via an RemoteInvokeMethod please read our blog about Ranorex Remote Invoke Method.
Regards,
Martin
Ranorex Support Team