Selenium IDE Base URL and Open commands
Solution 1
The base URL should be the index of your site. NOT the directory under test.
For example,
BaseURL: http://google.com/
Open: /search
This will open http://google.com/search
as the beginning Url. From then, you should continue testing.
In your case, specify
BaseURL: http://test.info:50/
Open: /test
And you'll be golden.
EDIT:
and selenium keeps running the script on the Base URL above and shows no error.
Selenium IDE will show no errors because Selenium IDE doesn't care where your test is ran.. it's not limited to that (nor should it be). It will only spit out an error for something is wrong in your script. Nothing to do with your opening of urls. You could open something like /somebullcrapdirectory
and it'd still be fine. It'd fail at the point of performing any subsequent actions though, since /somebullcrapdirectory
would actually be an invalid directory.
Solution 2
I hope you understand Abhi,
When user give the blank base url after that comes the error, [warn] Base URL is not set. Updating base URL from current window. [error] baseUrl wasn't absolute:
Solution 3
We can simply use the open command and leave the target section blank.
This will use the base URL and open it.
Related videos on Youtube
Abhi
Updated on September 14, 2022Comments
-
Abhi over 1 year
What is the use of Base URL is Selenium IDE because even when I enter the wrong URL there or leave it blank, and run the script, it just runs fine.
I have this URL, as base URL http://test.info:50/test and in the open command when I use the part /test of the URL, so the URL to be opened should be http://test.info:50/test/test (which is not the actual URL) and selenium keeps running the script on the Base URL above and shows no error.
So, my question hear is what is the use of Base URL when it could be left blank or empty. What is the use of the Open command when I have used the full URL in the Base URL part.
Hope the question is clear. Please help.
-
Abhi over 10 yearsNo error or warning is shown in the logs section. Script is running fine.