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

Key: SRC-486
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: sugumar
Votes: 1
Watchers: 1
Operations

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

captureEntirePageScreenshot--file name validation issue

Created: 12/Jun/08 03:04 AM   Updated: 24/Sep/08 05:39 AM
Component/s: Client Driver - PHP
Affects Version/s: 1.0 beta 1
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment:
Windows XP,java version "1.6.0_05",Java(TM) SE Runtime Environment (build 1.6.0_05-b13),Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)


 Description  « Hide
$this->selenium->captureEntirePageScreenshot("D:\a\1.png");

When using this function "captureEntirePageScreenshot" and storing them in a file.

Here the file name is accepting only alphabets and if any numeric values present in the file name, it throws this error:

# error(1213256290783): Unexpected Exception: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFileOutputStream.init]
# error(1213256290798): Exception details: message -> Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFileOutputStream.init], QueryInterface -> function QueryInterface() { [native code] }, result -> 2147500037, name -> NS_ERROR_FAILURE, filename -> http://localhost:4444/selenium-server/core/scripts/selenium-api.js, lineNumber -> 2607, columnNumber -> 0, location -> JS frame :: http://localhost:4444/selenium-server/core/scripts/selenium-api.js :: anonymous :: line 2607, inner -> null, data -> null, initialize -> function initialize() { [native code] }

 All   Comments   Work Log   Change History      Sort Order:
Haw-Bin Chai - 19/Aug/08 04:24 PM
Looks like you're using Perl ... did you try escaping the backslashes in your path string?

Shashi - 24/Sep/08 05:39 AM
I get Can't locate object method "capture_entire_page_screenshot" via package "Test::WWW::Selenium" (also tried "WWW::Selenium) at C:/perlapache/Perl/lib/Test/WWW/Selenium.pm line 144, Is this command implemented for Perl client driver?