FindSingle with Flash page
Posted: Wed Dec 30, 2009 3:09 pm
Hello,
I just started using Ranorex and would like to use the FindSingle method to gain access to an object in my Flash website based on it's text caption. The objects change dynamically with each load so I'm finding use of the repository to be problematic and was hoping the FindSingle method could help. I have the following two lines:
Ranorex.FlexElement browser = Host.Local.FindSingle("/dom[@pageurl='http://localhost/RanorexLoader.swf?rxta ... derVue.swf']");
Ranorex.Text location = browser.FindSingle("/text[@caption='Parse_in.txt']");
I receive the following error when run:
Ranorex.CapabilityNotSupportedException: The element does not support the required capability 'flexelement'.
at Ranorex.Adapter.AssertRequiredCapabilities()
at Ranorex.Adapter..ctor(Element element)
at Ranorex.FlexElement.op_Implicit(Element element)
at SourceExtract.Program.Main(String[] args) in c:\QA\RanorexAutomation\Gen2\SourceExtract\SourceExtract\Program.cs:line 46
I have tried both FlexElement and FlexObject with the same result. What is the proper way to use this in this case?
Thanks,
Jason
I just started using Ranorex and would like to use the FindSingle method to gain access to an object in my Flash website based on it's text caption. The objects change dynamically with each load so I'm finding use of the repository to be problematic and was hoping the FindSingle method could help. I have the following two lines:
Ranorex.FlexElement browser = Host.Local.FindSingle("/dom[@pageurl='http://localhost/RanorexLoader.swf?rxta ... derVue.swf']");
Ranorex.Text location = browser.FindSingle("/text[@caption='Parse_in.txt']");
I receive the following error when run:
Ranorex.CapabilityNotSupportedException: The element does not support the required capability 'flexelement'.
at Ranorex.Adapter.AssertRequiredCapabilities()
at Ranorex.Adapter..ctor(Element element)
at Ranorex.FlexElement.op_Implicit(Element element)
at SourceExtract.Program.Main(String[] args) in c:\QA\RanorexAutomation\Gen2\SourceExtract\SourceExtract\Program.cs:line 46
I have tried both FlexElement and FlexObject with the same result. What is the proper way to use this in this case?
Thanks,
Jason