1) Try open $url, which contains symbol &
For example
Func setUp()
_construct("*firefox" ,"http://google.com/")
_start()
EndFunc
Func tearDown()
_stop()
EndFunc
Func Test()
setUp()
Local $url = "/search?sourceid=chrome&ie=UTF-8&q=Blueduck+SDA+bug+report"
_open($url)
Sleep(50000)
tearDown()
EndFunc
Test()
Result:
In opened window of Selenium Remote Control where was a command
open(/search?sourceid=chrome)
But there should be a command
open(/search?sourceid=chrome&ie=UTF-8&q=Blueduck+SDA+bug+report)
Test Enviroment:
Blueduck SDA 1.0.2
Selenium Server 2.0b3
Mozilla Firefox 3.6.16
Internet Explorer 9
Hi ShockwaveNN
Thank you very much for reporting the bug.
The bug will be fixed in the version 1.0.3
While you can try the following:
Local $url = "/ search? sourceid = chrome & ie = UTF-8 & q = Blueduck + SDA + bug + report"
$url = StringReplace ($url,"&","%26 ")
The character of a URL might not be usable in contexts where It may conflict with a reserved character. In either case, the dog character encoded with a% be followed by ITS equivalent hexadecimal ASCII code, in this case & = %26
Thank you very much
Regards
Thanks, it's work now.
But you're added superfluous "Space" symbol.
You're type
$url = StringReplace ($url,"&","%26 ")
But it's should be
$url = StringReplace ($url,"&","%26")
Just a typo :)
But in case someone need this solution i note about it.
Thanks for your quick response, i think i may use your library during my project, so i try to create bug reports for every problem, which i find :)
ShockwaveNN
Thank you very much for your help.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).