Menu

#2 _open($url) lost part of the URL after & symbol

closed-fixed
oh!
8
2011-09-07
2011-04-05
ShockwaveNN
No

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

Discussion

  • ShockwaveNN

    ShockwaveNN - 2011-04-05
    • priority: 5 --> 7
     
  • oh!

    oh! - 2011-04-06
    • priority: 7 --> 8
     
  • oh!

    oh! - 2011-04-06

    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

     
  • oh!

    oh! - 2011-04-06
    • status: open --> pending-accepted
     
  • ShockwaveNN

    ShockwaveNN - 2011-04-07

    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 :)

     
  • oh!

    oh! - 2011-04-07

    ShockwaveNN
    Thank you very much for your help.

     
  • SourceForge Robot

    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).

     
  • SourceForge Robot

    • status: pending-accepted --> closed-accepted
     
  • oh!

    oh! - 2011-09-07
    • status: closed-accepted --> closed-fixed
     
MongoDB Logo MongoDB