Apr
16
2010

Troubles with Selenium supporting SSL in Google Chrome ?

If you are trying to run  selenium scripts in Google Chrome using java, and getting Http Error 400 for the pages with (Https). You are not alone ! :)

Google’s new web browser, Chrome, has sparked a lot of discussion and interest in many of its new features. Though still in beta, it handles many things much better than all other current browsers. But how does it handle SSL certificates? Does it give the appropriate error messages and user interface notifications? That is what we are going to investigate.

First off, of course, it supports normal SSL certificates without any problem. It just displays a yellow background in the address bar, a lock icon on the right, and makes the https in the address bar green: (more…)

  • Share/Bookmark
0
Apr
16
2010

Your browser doesnt support Xml Http Request – but the test passed ! errrrrorrr??

Another Selenium Question:

While trying to record my webpage which is built in .net framework (.Net 3.5).

When I opened the home page URL during playback, There is an error message “Your browser doesnt support Xml Http Request” being displayed in the log, though the test never failed !

What could be the reason for it? The URL ends with “Login?ReturnUrl=%2f”.

The Solution is: (more…)

  • Share/Bookmark
0
Feb
12
2010

MS Silverlight testing with Selenium !

One of the things that’s particularly interesting about Selenium is that it uses HTML Tables as its input Domain Specific Language. Go ahead and read that sentence again just to drink it in.

For example, if you had a page called “/default.html” and on that page there was a button called “myButton” here’s the code to open the page and click that button.

<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">SeleniumTest</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>/Default.html</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>myButton</td>
    <td></td>
</tr>
</tbody></table>

This would be a “test” page and you’ll also need a master “Suite” that would contain many tests. A Suite is just a table of tests: (more…)

  • Share/Bookmark
0