History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SRC-431
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Chris
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium Remote Control

Perl module method get_location() tries to issue getAbsoluteLocation command to server instead of getLocation

Created: 25/Feb/08 03:31 PM   Updated: 12/Aug/08 05:35 PM
Component/s: Client Driver - Perl
Affects Version/s: 0.9.2
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows XP SP2, Selenium Remote Control Server 0.9.2, ActiveState ActivePerl 5.8.6, Selenium Perl driver (whatever is current on ActiveState's CPAN-alike as of Feb 22, 2008)


 Description  « Hide
When using $selenium->get_location() in Perl with Selenium RC, the program dies complaining:

> ERROR: Unknown command: 'getAbsoluteLocation'

Logging into the server in interactive mode, I get a similar thing:

> cmd=getAbsoluteLocation&1=774290
> 16:10:36.087 INFO - Command request: getAbsoluteLocation[774290, ] on session 774290
> 16:10:36.119 INFO - Got result: ERROR: Unknown command: 'getAbsoluteLocation' on session 774290

However, if I then use getLocation, it appears to work:

> cmd=getLocation
> 16:10:48.181 INFO - ---> Requesting http://localhost:4444/selenium-server/driver?cmd=getLocation&sessionId=774290
> 16:10:48.212 INFO - Command request: getLocation[, ] on session 774290
> 16:10:48.259 INFO - Got result: OK,http://www.google.com/selenium-server/core/Blank.html on session 774290

I suspect the name was changed at some point, and either the server needs a stub for getAbsoluteLocation or the Perl drivers need to be updated to use getLocation instead of getAbsoluteLocation.

 All   Comments   Work Log   Change History      Sort Order:
Chris - 26/Feb/08 04:03 PM
Turns out the ActivePerl repository version is hideously out of date; I think it's driver version 1.03, where the version on CPAN is 1.14. I'm not sure if that's something you guys are responsible for, or if it's ActiveState's problem. I did install 1.14 from CPAN and it seems to work fine now, though.