Unable to capture the warning msg in the tool

6 posts, 0 answers
  1. Veera
    Veera avatar
    25 posts
    Member since:
    Jul 2010

    Posted 07 Dec 2010 Link to this post

    HI
    I am unable to capture the warning msgs thrown by the child window in the element explorer.
    Pls ref the atachement attached with the thread.

    Msg from the tool
    ---------------------------
    Telerik - WebUI Test Studio
    ---------------------------
    This element cannot be found in the current page.
    ---------------------------
    OK  
    ---------------------------

  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 07 Dec 2010 Link to this post

    Hi Veeraraghavan,

    Are you running the latest SL v4 runtime on that machine? Please refer to this blog for details.

    Kind regards,
    Konstantin Petkov
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  3. Veera
    Veera avatar
    25 posts
    Member since:
    Jul 2010

    Posted 07 Dec 2010 Link to this post

    Hi Konstantin,
    Yes I am running the latest SLV 4.0. I am able to capture the text box,dropdown, text block or buttonetc.. But not able to capture only this error or warnings.

    Cheers,
    Veera!!!
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 07 Dec 2010 Link to this post

    Hello Veeraraghavan,

    What steps did you perform that led up to the "This element cannot be found..." error message? What are you actually trying to capture... is it the "The user name or password is incorrect" warning message? Would it be possible for us to direct access your application so we can investigate what's going on first hand?

    Kind regards,
    Cody
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  5. Veera
    Veera avatar
    25 posts
    Member since:
    Jul 2010

    Posted 08 Dec 2010 Link to this post

    Hi Cody,
    I am getting the error "This element cannot be found..." when i try to add the warning msg to teh elements explorer.
    • Yes I am triying to  capture the "The user name or password is incorrect" warning message. I have mark the warning msg in the attached screen shot.
    • Since the application is not exposed to internet. I will not be able to provide you access to the application. sorry about that. If you want may be we can schedule a meeting so that we can investigate further. Thanks

    Cheers,
    Veera

  6. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 09 Dec 2010 Link to this post

    Hi Veera,

    First, make sure that you have IE set to default zoom level. The highlighting for the item in your provided screen shot is off slightly, and this is caused either by the zoom being off for the browser (IE), or by having the DPI setting adjusted to a setting other than the default of 96 DPI. Please use our KBase article on Highlighting for steps on how to check/resolve this facet.

    From the looks of the screenshot, this appears to be a Silverlight control. If this is the case, we are aware of an issue with the DOM not updating after postback on a Silverlight control. In this type of scenario, add the following coded step after you cause the postback but before you look for the element:

    C#

    [CodedStep(@"SL Refresh")]
    public void SL_refresh()
    {
        SilverlightApp slapp = ActiveBrowser.SilverlightApps()[0];
        slapp.RefreshVisualTrees();
    }


    VB.net

    <CodedStep("SL Refresh")> _
    Public Sub SL_refresh()
        Dim slapp As SilverlightApp = ActiveBrowser.SilverlightApps()(0)
        slapp.RefreshVisualTrees()
    End Sub


    I wasn't sure which language you are using, so I provided both. Feel free to personalize the coded step for your test. Please let us know the results, we will look for your reply.

    Greetings,
    Keaegan
    the Telerik team

    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!