Telerik Forums
Testing Framework Forum
3 answers
296 views
Hi guys, 

I've written the following method to help me 'wait' for buttons as a page uploads. 
public void WaitForButton(String awaitingButton)
    {
        StringBuilder buffer = new StringBuilder();
        buffer.Append("XPath=//input[@value=\"")
              .Append(awaitingButton)
              .Append("\"]");
 
        Manager.ActiveBrowser.WaitForElement(new HtmlFindExpression(buffer.ToString()), 20000);
       }

1. 20000 is WaitForElement's timeout therefore unless the button shows up within 20 sec from invoking the method, it should throw an       exception. For some reason it looks like a delay is created not a timeout. Are you aware of it? 

2. In addition, what are forms of HtmlFindExpression I can use other then Xpath ? Could you pls add an example? 

Ta. 
Stoich
Telerik team
 answered on 23 Feb 2011
2 answers
135 views
Does anyone know if there are any known issues using the WebAii proxy on a Virtual Machine? 

Currently we are seeing issues where all of our test machines are VM’s and at some point during the test run the proxy server will hang which causes all future test cases run on that machine to fail.  If we run without using the WebAii proxy we do not see this issue. 

As I have yet to find a way to set the User-Agent without using the Proxy for Safari we need this proxy to work and be stable. 

Any ideas?
Chris
Stoich
Telerik team
 answered on 22 Feb 2011
5 answers
99 views
Hi,

Is any one know if there had some place in WebUI Test Project Solution where i could changed for adding customize steps for setting up environment just like TestInitialize method in VS Test project?


Regards,
Tom
Stoich
Telerik team
 answered on 21 Feb 2011
3 answers
149 views
Hey all,

I have a problem with adding cookies to a browser.  I basically set my cookie:

CookiesManager cookiesManager = Manager.ActiveBrowser.Cookies;
 
Cookie myCookie = new Cookie();
myCookie.Name = "MyCookieName";
myCookie.Value = "SomeLongString";
myCookie.Domain = "Domain";
myCookie.Path = "/";
 
cookiesManager.SetCookie(myCookie);

I can see the cookie created in the browser (using FireFox I go to Options -> Privacy -> History -> Use custom settings for history -> Show Cookies).

The problem is, the cookie is NOT added as part of the HTTP request for the next url I navigate to.  Is this a bug, am I doing something wrong? 
Stoich
Telerik team
 answered on 18 Feb 2011
1 answer
122 views
Hello,
I am not able to verify the silverslight combobox text using verification hover tool provided by telerik.

Thanks,
Prachi
Stoich
Telerik team
 answered on 18 Feb 2011
5 answers
187 views
Hi,

Can anybody provide the code for identifying messagebox dialogue in silverlight?

Thanks in advance
Cody
Telerik team
 answered on 16 Feb 2011
2 answers
187 views
Hi,

I'm having a heck of a time trying to clear a Silverlight RadMaskedTextBox control.  What I want to do is iterate through a list of values to type into the control using the WebAii framework.  After typing a value, I would like to clear the control and then type the next value.  Here's what I have so far:

            theControl.MouseClick(MouseClickType.LeftClick, 0, true);
            theControl.TypeText(textToType, 0);

With this code, its appending the new value to what's currently there.  I've looked for a few hours and haven't found anything on clearing the control.

Thanks for your help.

Joel
Joel
Top achievements
Rank 1
 answered on 16 Feb 2011
5 answers
219 views
I'm finding it's much easier said than done... I'm having no trouble grabbing the ListBox, but the Items (ItemCollection) is not giving me the information I'm looking for. When I iterate through the strings, they display the class name of the item in the listbox. I'm looking for the actual string being displayed in the listbox. How can I get that actual string?
Arv
Top achievements
Rank 1
 answered on 14 Feb 2011
1 answer
92 views

I need to read an already open browser, not launch a new one - how to? assume its the only browser open on the desktop

    Cody
    Telerik team
     answered on 09 Feb 2011
    3 answers
    71 views

    don't know where to set annotations on - my best guess was not good enough
    giving me 
    Error 2 The name 'GetSettings' does not exist in the current context 

                                    Settings mySettings = new Settings(BrowserType.InternetExplorer, @"c:\log\");
                                    // Create the manager object

                                    Manager myManager = new Manager(mySettings);

                                    Settings settings = GetSettings();
                                    settings.AnnotateExecution = true;
                                    // Start the manager

                                    myManager.Start();

    Cody
    Telerik team
     answered on 09 Feb 2011
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Chester
    Top achievements
    Rank 1
    Iron
    Simon
    Top achievements
    Rank 1
    Iron
    Douglas
    Top achievements
    Rank 2
    Iron
    Iron
    SUNIL
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Marco
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Chester
    Top achievements
    Rank 1
    Iron
    Simon
    Top achievements
    Rank 1
    Iron
    Douglas
    Top achievements
    Rank 2
    Iron
    Iron
    SUNIL
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Marco
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?