Telerik Forums
Testing Framework Forum
3 answers
80 views
Hi,
the combination of nested table and an (empty) <td /> tag empty table cell
causes my test fails in IE8 due to a wrongly interpreted DOM.

The source DOM is found in code1 the result after asking Webaii for the DOM ist listed in code2.
The row with the "td3" tag slips out of the outer table of the nested two ones.

This is observed when asking WebAii for parts of or the whole DOM by e.g.
- Find.ByNodeIndexPath("1") --> returns the root element which relates to a wrong XML structure as serialized in code2
- Find.ByNodeIndexPath("1/0/0/1") --> returns NULL when searching for the second row in the outer table.

When observing the DOM in IE DEveloper Tools the correct DOM is shown (as seen in the attached screenshot of my IE)!
The same test with FireFox as the defult browsers is sucessfull!

Html code contains an nested table with an empty, self closing td tag (this html code is generated by our WebApplication Framework so I have almost no control over the html generation.

Here the htlm souce (code1):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html  xmlns="http://www.w3.org/1999/xhtml">   
  <head> 
    <title> 
      Test  
    </title> 
  </head> 
  <body> 
    <table> 
      <tbody> 
        <tr> 
          <td> 
            <table> 
              <tbody> 
                <tr> 
                  <td />                <!-- the problem cell --> 
                  <td id="td2">cell 1,1,1,2</td> 
                </tr> 
              </tbody> 
            </table> 
          </td> 
        </tr> 
        <tr> 
          <td id="td3">cell 2,1</td> 
        </tr> 
      </tbody> 
    </table> 
  </body> 
</html> 

html code of the DOM structure (serialized) as returned by Find.ByNodeIndexPath("1")
<body> 
    <table> 
        <tbody> 
            <tr> 
                <td> 
                    <table> 
                        <tbody></tbody>  
                    </table> 
                </td> 
                <tr> 
                    <td> 
                        <td id='td2'></td> 
                    </td> 
                </tr> 
            </tr> 
        </tbody> 
    </table> 
    <tr> <!-- ROW slipped out of outer table --> 
        <td id='td3'></td> 
    </tr> 
</body> 

Thank you for your support -

Peter Lenz
Missing User
 answered on 17 Jun 2010
6 answers
225 views
I have problem with launching browser on Windows 7 and Visual Studio 2010. I have installed WebUi Developer Edition on my machine, but when I started recording always appears error message "Failed to launch the browser". I think that settings in IE 8 is not problem, because I made all necessary settings for IE8. Please see attached file.
Missing User
 answered on 17 Jun 2010
1 answer
128 views
Hi,
I am using Telerik Web UI Test Studio of Version - 2009.3.1424

10 days back, my scripts ran fine. Today when I tried to open the scripts, they got opened by default in 'XML Editor'. I then right-clicked on the Tests and chose 'Open With' feature. There I noticed that 'WebAii Test Editor' is not even listed.

The list that I see is -

XML Editor (Default)
XML Editor with Encoding
Source Code (Text) Editor
Source Code (Text) Editor with Encoding
HTML Editor
HTML Editor with Encoding
Binary Editor
Resource Editor

Any reason why this is happening? Is this a configuration issue? Why did this automatically happen? How can this be fixed?

Regards
Kshitij
Missing User
 answered on 16 Jun 2010
1 answer
96 views
I have trouble with launching browser in WebUI Developer edition and VS 2010 on Windows 7 X64, so, I uninstalled WebUI Developer edition and installed WebUI QA edition. I have problem with windows autorisation, recorder do not record URL and do record username and password in the login form when I typing it. (Internet Explorer login box is empty) I supose that should be add some custom step something like this...ActiveBrowser.NavigateTo("https://applicationname/Default.aspx");
Please help
Missing User
 answered on 14 Jun 2010
4 answers
435 views
When I try to SetText() in tinyMCE editror,  WebAii haven't found a frame that contains body with text.
I use code:
Browser ie = manager.ActiveBrowser;
Browser fr = ie.Frames.ById("content_ifr");


But fr = NULL after that.
How to set the text into body in this frame?
And next one question: how I can to allocate the <body>?  I guess this code is wrong, but I can't check it (can't found a frame):
Element fr_body = fr.Find.ByTagIndex("body", 0);
fr.Actions.SetText(fr_body, "text");

Sergey
Top achievements
Rank 1
 answered on 14 Jun 2010
1 answer
169 views
We are looking to use WebAii for performance testing.

Part of the requirement is to send multiple objects to a ui using a function in Javascript.

However repeated calls using code below is only sending a maximum of 15 requests per second, which is too slow to be helpful for performance testing.

WebAii code
            for (int x = 1; x <= 100; x++)
            {
               Actions.InvokeScript(string.Format("test('{0} ')", x));
            }

calls this :
function test(sendValue) {
            if (Plugin == null) {
                Plugin = document.getElementById("SilverlightControl");
            }
            Plugin.Content.MainPage.UpdateText(sendValue);
        }



In comparison we can run the same loop in raw JavaScript and send 100's of messages per second to Silverlight.

comparison JavaScript code
            for (i = 1; i <= 100; i++) {
                test(i + " ");
            }

Is the WebAii test being speed restricted?
Cody
Telerik team
 answered on 11 Jun 2010
7 answers
140 views
Hello!

I am new in Web.Aii
I need to learn to test Silverlight applications.


E.g., I want to click on some square at http://www.brightstarr.com/US/Pages/default.aspx

I use such code:
Manager.ActiveBrowser.NavigateTo("http://www.brightstarr.com/US/Pages/default.aspx");
            Manager.ActiveBrowser.WaitUntilReady();
            System.Threading.Thread.Sleep(6000);
            SilverlightApp app = Manager.ActiveBrowser.SilverlightApps().First();
            app.FindName<Button>("autoUpgrade").User.Click();
            
But it does not work. web.Aii just can't find element to click.
Can anybody halp me and tell what to do?

Code of the square in HTML code:
<object height="100%" width="100%" type="application/x-silverlight-2" data="data:application/x-silverlight,">
<param value="../../../Documents/Silverlight/WebAnimationsusa.xap" name="source" id="ctl00_ctl22_g_57f12b59_9d07_49b9_8715_ce29bec40605_ctl00_src"/>
<param value="onSilverlightError" name="onerror"/>
<param value="white" name="background"/>
<param value="3.0.40818.0" name="minRuntimeVersion"/>
<param value="true" name="autoUpgrade"/>
<param value="true" name="windowless"/>
<a style="text-decoration: none;" href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40818.0">
    
<img value="http://go.microsoft.com/fwlink/?LinkId=108181" style="border-style: none;" 
alt="Get Microsoft Silverlight" id="ctl00_ctl22_g_57f12b59_9d07_49b9_8715_ce29bec40605_ctl00_img" src="http://go.microsoft.com/fwlink/?LinkId=108181"/>

</a>
</object>
Missing User
 answered on 11 Jun 2010
1 answer
77 views
Hi guys,

I recently upgraded from WebAii 2.0.4 (old beta version) to the latest build, and noticed that the component seems to be writing a lot more messages to the default Trace output.

I'd like to put a filter on that output, so my own trace messages don't get swamped in the output. Does the WebAii component use a TraceSource I can filter on?

Thanks for any info.

-JP
Cody
Telerik team
 answered on 09 Jun 2010
3 answers
133 views
GetCookies seems to work for any URL except http://localhost. I only tried this in IE8.

Please file a bug for investigation and if you know of any workarounds, that would be helpful.
Missing User
 answered on 07 Jun 2010
2 answers
353 views
Hi Guys,

I've got a situation in which I have 6 radio buttons arranged in pairs and each pair has an identical name.
In each pair, one radio button is a 'No' and the other 'Yes'. Only 'Yes' or 'No' can be checked in any give time. 

Running the following didn't help as I'm missing something to help distinguishing between the Yes and No radios in each pair...

    var radios = Find.AllControls<HtmlInputRadioButton>();
                foreach (HtmlInputRadioButton rb in radios)
                {
                    rb.Check(true, true);
                }

<tbody> 
<tr> 
<td> 
<label> 
<input type="radio" value="true" name="assessmentForm:generalVerified"/> 
Yes 
</label> 
</td> 
<td> 
<label> 
<input type="radio" value="false" name="assessmentForm:generalVerified"/> 
No 
</label> 
</td> 
</tr> 
</tbody> 

Ta,
SD.
Missing User
 answered on 04 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?