Find.ByExpression(New XamlFindExpression) problem

3 posts, 0 answers
  1. test cdb
    test cdb avatar
    10 posts
    Member since:
    Apr 2010

    Posted 13 Sep 2012 Link to this post

    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. Byron
    Byron avatar
    184 posts

    Posted 18 Sep 2012 Link to this post

    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.

    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. test cdb
    test cdb avatar
    10 posts
    Member since:
    Apr 2010

    Posted 19 Sep 2012 Link to this post

    Hello Byron,

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

    Thanks for your time.
Back to Top