Cannot access MS SilverLight controls in IE
Posted: Thu Oct 13, 2016 10:33 pm
Looks like I cannot access any SilverLight components.
I have a search button on my page and RxPath to it is
But when I try to use this path in my code I’m getting the following exception:
“Result StackTrace:
at Ranorex.Adapter..ctor(Element element)
at Ranorex.WebElement.op_Implicit(Element element)
at CatalystRnrx.ObjectRepository.CreateInvoice.get_SearchBatton() in C:\qa\BDD_Automation\CatalystRnrx\CatalystRnrx\ObjectRepository\CreateInvoice.cs:line 25
at CatalystRnrx.TestClass.TestMethod7() in C:\qa\BDD_Automation\CatalystRnrx\CatalystRnrx\TestClass.cs:line 257
Result Message: Ranorex.CapabilityNotSupportedException : The element does not support the required capability 'webelement'.”
May be it's due to trial license or I missed some references in MY VS project.
Thanks for all help!
I have a search button on my page and RxPath to it is
Code: Select all
“/dom[@caption='CreateInvoice']//div[#'silverlightControlHost']/?/?/form[@name='Silverlight Control']/button[@automationid='SearchButton']/picture[@classname='Image']”
“Result StackTrace:
at Ranorex.Adapter..ctor(Element element)
at Ranorex.WebElement.op_Implicit(Element element)
at CatalystRnrx.ObjectRepository.CreateInvoice.get_SearchBatton() in C:\qa\BDD_Automation\CatalystRnrx\CatalystRnrx\ObjectRepository\CreateInvoice.cs:line 25
at CatalystRnrx.TestClass.TestMethod7() in C:\qa\BDD_Automation\CatalystRnrx\CatalystRnrx\TestClass.cs:line 257
Result Message: Ranorex.CapabilityNotSupportedException : The element does not support the required capability 'webelement'.”
May be it's due to trial license or I missed some references in MY VS project.
Thanks for all help!