Hello,
I have a strange problem with selenium ide 1.0b2. It does not seem to pick up the 'Base URL' form the selenium ide when running test cases but somehow 'remembers' the last visited page. All commands from the test case then are executed against this 'remembered' url instead of the specfied url??
I am using a relative path in the open command ( / ).
Thanks for any help in advance...
--------------------------------------------------------------------
the testcase:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>homePage</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">homePage</td></tr>
</thead><tbody>
<tr>
<td>setTimeout</td>
<td>300000</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>De Telefoongids Bedrijvengids, telefoonboek, telefoonnummer en adres</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Wie</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Wat</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Web</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>help</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>uitgebreid zoeken</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Kies een rubriek</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Kies een regio</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Zoek in Nederlandse sites</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Zoek op heel Internet</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
I am having the exact same issue. The Baseurl it is remembering from when I recorded, even though they are relative and the box on the top of the ide has the new one, it is like it is missing a save button.
I think that you need to specify exact way after "/"
Hi all
I am relatively new to Selenium, so please forgive any fumbling in trying to describe my problem, and if I am posting in the wrong forum (please direct me to the right place to submit)
We are currently stuck using Selenium IDE Version 0.8.7 because of a problem that sounds something like the problem described in the original post...
Except that out problem is that the baseurl is not being used at all.
As I am not that familiar with selenium, I will try and show rather than describe our problem.
Take the following test for example:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Logout</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Logout</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/shared/lopage.aspx</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>You have signed out. </td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
This test is run as part of a suite, triggered from the command line by the following, formatted to make it a little easier to visually parse (I hope!):
"C:\Program Files\Mozilla Firefox\firefox.exe"
-chrome
"chrome://selenium-ide/content/selenium/TestRunner.html
?test=file:///D:\dev\CC3\TestCore\Selenium\WarmUp.xml
&baseURL=http://dev.test.comk/CC3/testSys/testWeb
&userExtensionsURL=file:///D:\matrixdev\CC3/TestCore/Selenium/UserExtensions/site-user-extensions.js
&auto=true
&resultsUrl=http://localhost/ccnethandle/handlewarmup.aspx"
We get errors that imply that the baseurl is being ignored or is not being set at all, and so the tests, of course, fail:
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /share/logout.aspx
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
I checked the issue tracker and did not see anything that seemed related to this problem... should I add this issue to tracker?
Thanks
I have the same problem.
When I use the baseUrl="http://server/path1" and with the command "open /path2/" the browser send a "Get http://server/path2/" in place off "http://server/path1/path2/"
Thanks
Hi Eduard
The IDE does not appear to store or use the baseurl if it is opened in the side bar or in any extensions windows/bars.
If you always open it from the tools->IDE the base url will work correctly.
Regards
Donald
Hi Donald,
tested selenium like you stated and this works... Thanks for pointing this out !
Greetings,
Eduard.
Hi,
I disagree with D_Tester, as I never use the side bar to load the IDE , but have experienced the same problem.
I have however discovered the following:
I am using HTML format and if you view the source of your test case you will notice that the line -> <link rel="selenium.base" href="" /> needs to have the href="", however in the offending test cases href is populated with a harcoded URL like-> href="http://www.test.lan/cgi-bin/login.pl". So by simply removing the hardcoded URL you will be able to reference the Base URL once again.
Hope this helps
Hi Fatima,
thanks for your reply.
I don't have a html link tag in my testcases at all? I record them
through the ide and save them in html format.
So how did the html link tag got into your testcases if I may ask?
A small remark about changing the base url in the ide loaded in a
separate window: after changing the base url I have to press enter to
make the change effective...
greetings,
Eduard.
2008/10/8 Fatima Moola <clearspace@openqa.org>:
Hi,
>
I disagree with Eduardo, as I never use the side bar to load the IDE , but have experienced the same problem.
I have however discovered the following:
I am using HTML format and if you view the source of your test case you will notice that the line -> <link rel="selenium.base" href="" /> needs to have the href="", however in the offending test cases href is populated with a harcoded URL like-> href="http://www.test.lan/cgi-bin/login.pl". So by simply removing the hardcoded URL you will be able to refrence the Base URL once again.
>
Hope this helps
>
>
Hi Eduard,
I am still fairly new to selenium so my knowledge is a bit limited ...:(
I create my test cases through the IDE and save them in HTML format just as you do. Each new test case is prepopulated with:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
</tbody></table>
</body>
</html>
And as you can see the <link rel="selenium.base" href="" /> is automatic...
Can't tell you much more
Thanks
Fatima
Hi
I have detected, that the problem is the backslash, it works different form Selenium 0.87 to 1.0b2.
The baseUrl must end with a backslash, the openURl must begin without backslash in 1.0b2
I mean (in Version 1.0b2):
| Number | baseurl | Open | result |
|---|---|---|---|
| 1 | http://server/path1 | /subpath2/ | http://server/subpath2/ |
| 2 | http://server/path1 | subpath2 | http://server/subpath2 |
| 3 | http://server/path1 | /subpath2 | http://server/subpath2 |
| 4 | http://server/path1 | subpath2/ | http://server/subpath2/ |
| 5 | http://server/path1/ | /subpath2/ | http://server/subpath2/ |
| 6 | http://server/path1/ | subpath2 | http://server/path1/subpath2 |
| 7 | http://server/path1/ | /subpath2 | http://server/subpath2 |
| 8 | http://server/path1/ | subpath2/ | http://server/path1/subpath2/ |
Only case 6 and 8 this works like 0.87
Jens
I generate my testcases from big excelsheets, not from the IDE