Element.Children seems not to return invisble children
Are there any adjustments necessary, e.g. filter ?
Regards Jörg
Element.Children seems not to return invisble children
-
- Posts: 55
- Joined: Thu Aug 23, 2007 12:00 pm
Re: Element.Children seems not to return invisble children
Does RanorexSpy show element children that are not visible? Possibly your non visible elements are descendants and not children?
Can you post a RanorexSpy snapshot of your AUT and point out which non visible children are not being returned by your children find?
Can you post a RanorexSpy snapshot of your AUT and point out which non visible children are not being returned by your children find?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
-
- Posts: 55
- Joined: Thu Aug 23, 2007 12:00 pm
Re: Element.Children seems not to return invisble children
yes, Spy show also the invisible children, but in Debugger child-count = 0
see. attached .png
see. attached .png
You do not have the required permissions to view the files attached to this post.
Re: Element.Children seems not to return invisble children
can you post a RanorexSpy snapshot and your line(s) of code making the find call?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
-
- Posts: 55
- Joined: Thu Aug 23, 2007 12:00 pm
Re: Element.Children seems not to return invisble children
simplified code:
Element el_row = table.Children; //returns an invisible row and should have some also invisible cells
el_row.Children.Count // = 0 -> but el_row has invisible Children (cells)
Here you can download the snapshot:
http://dl.dropbox.com/u/27488736/gridControl.rxsnp
table: ../gridSegmentConfMeasurements/../gridcontrol
row: Codia row1
Cell: Label
thanks in advance
Jörg
Element el_row = table.Children; //returns an invisible row and should have some also invisible cells
el_row.Children.Count // = 0 -> but el_row has invisible Children (cells)
Here you can download the snapshot:
http://dl.dropbox.com/u/27488736/gridControl.rxsnp
table: ../gridSegmentConfMeasurements/../gridcontrol
row: Codia row1
Cell: Label
thanks in advance
Jörg
Re: Element.Children seems not to return invisble children
Bummer, I can't open that Snapshot... I really need to get around to updating my Ranorex installation...
Maybe support can chime in here until I get Ranorex installation updated...
Maybe support can chime in here until I get Ranorex installation updated...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Element.Children seems not to return invisble children
Hello Jörg,
I have seen, that you are using a HelperClass to get the element in your code.
Would you please try to use the RxPath to get the row?
Maybe there is something missing in your HelperClass.
Example:
Row row = "/form[@controlname='ContainerForm']//element/table/row[@accessiblename='Codia row 1']";
Ranorex.Report.Info("Rows: " + row.Children.Count.ToString());
Do you also get a the same value for the counter?
Regards,
Bernhard
I have seen, that you are using a HelperClass to get the element in your code.
Would you please try to use the RxPath to get the row?
Maybe there is something missing in your HelperClass.
Example:
Row row = "/form[@controlname='ContainerForm']//element/table/row[@accessiblename='Codia row 1']";
Ranorex.Report.Info("Rows: " + row.Children.Count.ToString());
Do you also get a the same value for the counter?
Regards,
Bernhard
-
- Posts: 55
- Joined: Thu Aug 23, 2007 12:00 pm
Re: Element.Children seems not to return invisble children
Solution:
Configuration.Current["plugins.msaa.FilterEnabled"] = false;
only necessary in case of invisible children ?!?
Support should give further explanation...
Configuration.Current["plugins.msaa.FilterEnabled"] = false;
only necessary in case of invisible children ?!?
Support should give further explanation...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Element.Children seems not to return invisble children
It looks like you changed that Msaa plugin setting in Spy to "false": This is a per machine setting and if you change it on one machine, you also need to import the settings on the machine running the test. Alternatively, you can change the setting in code as you did:jabelshauser wrote:Configuration.Current["plugins.msaa.FilterEnabled"] = false;
Ranorex.Plugin.MsaaFlavor.Instance.FilterEnabled = false;A similar setting to filter invisible Msaa elements existed in Ranorex 1.X (Element.IgnoreInvisible).
Regards,
Alex
Ranorex Team
You do not have the required permissions to view the files attached to this post.