WindowsForms10.Window.8.app.0.bb8560 Krypton Component

Class library usage, coding and language questions.
EugeneF
Posts: 63
Joined: Fri Jul 29, 2011 12:26 am

WindowsForms10.Window.8.app.0.bb8560 Krypton Component

Post by EugeneF » Wed Feb 15, 2012 6:23 pm

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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component

Post by Support Team » Thu Feb 16, 2012 10:13 am

Hi,
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?
Please would it be possible to post us a Ranorex Snapshot of this control?
How to create a Ranorex Snapshot

Regards,
Peter
Ranorex Team
.
Image

EugeneF
Posts: 63
Joined: Fri Jul 29, 2011 12:26 am

Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component

Post by EugeneF » Thu Feb 16, 2012 5:43 pm

I attached here the snapshot.

Thanks!
Attachments
windowsForm10.rxsnp
(423.95 KiB) Downloaded 324 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component

Post by Support Team » Thu Feb 16, 2012 6:15 pm

Hi,

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
.
Image

EugeneF
Posts: 63
Joined: Fri Jul 29, 2011 12:26 am

Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component

Post by EugeneF » Thu Feb 16, 2012 6:57 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: WindowsForms10.Window.8.app.0.bb8560 Krypton Component

Post by Support Team » Fri Feb 17, 2012 10:28 am

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
.
Image