This is a migrated thread and some comments may be shown as answers.

Find.ByExpression(New XamlFindExpression) problem

2 Answers 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
test cdb
Top achievements
Rank 1
test cdb asked on 13 Sep 2012, 11:08 AM
Hello Telerik Team,

I try to access an element from our application (not accessible outside the company sorry) with a XamlFindExpression and it doesn't work when some of the controls types are "proprietary". It always returns an error.

I use:
Dim SecondElement As TextBlock
SecondElement = SilverLightMain.appMain.Find.ByExpression(New XamlFindExpression("Name=FunctionScriptView","|","XamlPath=/Grid[0]/Border[1]/Grid[0]/Grid[0]/ScrollViewer[0]/Border[0]/Grid[0]/ScrollContentPresenter[0]/Border[0]/DEXWebv2.FunctionEditor.Views.Functions.DateLastDayOfMonthView[0]/Grid[0]/DEXWebv2.FunctionEditor.Views.Functions.FunctionParamControl[0]/ContentPresenter[0]/Grid[0]/Border[0]/TextBlock[0]")).[As](Of TextBlock)()

Is there a way to have the XamlFindExpression to work in this case?

Thank you.

2 Answers, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 18 Sep 2012, 02:19 PM
Hello test cdb,

In order to help with your issue, we need more information about your test scenario. Please provide us with a copy of your test. Also, please provide your failure log and a copy of the DOM at the time of failure. You can export these to file from the failure tab for your test and add them to a .zip archive. If it is not possible to grant us access to your application, please take a Fiddler trace and attach it to a support ticket in a zip file. If you are unfamiliar with how to do that please refer to this short video. You can download the Fiddler application from here. A Jing video demonstrating the issue may also help us to better understand what is happening. Thanks for providing the information we need to advise you best.

Greetings,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
test cdb
Top achievements
Rank 1
answered on 19 Sep 2012, 01:16 PM
Hello Byron,

I will work around my "issue" by asking the development to add automationID on the needed controls.

Thanks for your time.
Tags
General Discussions
Asked by
test cdb
Top achievements
Rank 1
Answers by
Byron
Telerik team
test cdb
Top achievements
Rank 1
Share this question
or