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

Unable to capture the warning msg in the tool

5 Answers 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Veera
Top achievements
Rank 1
Veera asked on 07 Dec 2010, 10:06 PM
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  
---------------------------

5 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 07 Dec 2010, 10:50 PM
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
0
Veera
Top achievements
Rank 1
answered on 07 Dec 2010, 10:55 PM
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!!!
0
Cody
Telerik team
answered on 08 Dec 2010, 04:14 AM
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
0
Veera
Top achievements
Rank 1
answered on 08 Dec 2010, 05:02 PM
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

0
Keaegan
Telerik team
answered on 10 Dec 2010, 12:45 AM
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
Tags
General Discussions
Asked by
Veera
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Veera
Top achievements
Rank 1
Cody
Telerik team
Keaegan
Telerik team
Share this question
or