Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Screen capture call broken in 2.0a7 standalone jar #940

Closed
lukeis opened this issue Mar 2, 2016 · 8 comments
Closed

Screen capture call broken in 2.0a7 standalone jar #940

lukeis opened this issue Mar 2, 2016 · 8 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 940

See error I receive below:

.Tue Nov 02 15:13:51 -0400 2010 selenium-client received failure from selenium server:
requested:
    cmd=captureEntirePageScreenshot
    1=~/Desktop/selenium_screen_caps/ff_screen_caps_sat_us_free_trial_results_page.png
    2=background=#FFFFFF
    sessionId=024568c946ff460cbbe6278eba90058c
received:
    "ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org
for error details from the log window.  The error message is: PR_IRUSR is not defined"

When I run standalone 2.0a5 this works fine.

Reported by qablogmbox on 2010-11-02 19:19:32

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Ya. That was my fault, but has been fixed in trunk. Sorry.

Reported by adamgoucher on 2010-11-05 14:14:09

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hello, I'd like to patch my version. What is the change set?
Thank you )

Reported by marina.rusakova on 2010-11-23 11:17:58

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

It was fixed in r10112:

http://code.google.com/p/selenium/source/detail?spec=svn10404&r=10112

Reported by nirvdrum on 2010-11-24 15:46:07

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I don't know if it is the right place to post but I have the same problem with selenium-server-standalone-2.0a7.jar.


Reported by manouchk on 2010-12-16 12:40:16


- _Attachment: [20101216_problem_selenium_screenshot](https://storage.googleapis.com/google-code-attachments/selenium/issue-940/comment-4/20101216_problem_selenium_screenshot)_

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Sorry, OK. It is really the same problem.

Reported by manouchk on 2010-12-16 12:49:26

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Just for the help of anyone Googling, this manifested itself for me as the following:

Fri Dec 24 00:37:25 -0500 2010 selenium-client received failure from selenium server:
requested:
    cmd=captureEntirePageScreenshotToString
    1=background=#000000
    sessionId=ae5be7662e4840319234f328bcd8b722
received:
    "ERROR: java.io.FileNotFoundException: /var/folders/8X/8XK4-L7oEJuvOLi-t3i8sk+++TI/-Tmp-/customProfileDirae5be7662e4840319234f328bcd8b722/screenshots/page-screenshot-ae5be7662e4840319234f328bcd8b722.png
(No such file or directory)"
    called from (irb):17
Selenium::CommandError: ERROR: java.io.FileNotFoundException: /var/folders/8X/8XK4-L7oEJuvOLi-t3i8sk+++TI/-Tmp-/customProfileDirae5be7662e4840319234f328bcd8b722/screenshots/page-screenshot-ae5be7662e4840319234f328bcd8b722.png
(No such file or directory)
    from /Library/Ruby/Gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/protocol.rb:13:in
`remote_control_command'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:62:in
`timeout'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:93:in
`timeout'
    from /Library/Ruby/Gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/protocol.rb:11:in
`remote_control_command'
    from /Library/Ruby/Gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/protocol.rb:19:in
`string_command'
    from /Library/Ruby/Gems/1.8/gems/selenium-client-1.2.18/lib/selenium/client/legacy_driver.rb:1650:in
`capture_entire_page_screenshot_to_string'
    from (irb):17
    from Desktop/google.rb:17

This is, of course, because the first underlying command (to save the screenshot to
a file) fails with the error in the ticket title, and then the temp file doesn't exist.

Reported by pncalvin on 2010-12-24 05:41:59

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Note that captureEntirePageScreenshot is only implemented for Firefox ("firefox" or
"chrome", NOT "firefoxproxy") and IE non-HTA ("iexploreproxy", NOT "iexplore" or "iehta")

Reported by artkurapov on 2011-07-27 15:36:47

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 18:11:03

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant