No keyword with name 'Capture Page Screenshot

230 views
Skip to first unread message

Kk Kruups

unread,
Feb 20, 2020, 2:16:10 AM2/20/20
to robotframework-users
Hi folks ran into issue with Selenium2Library and SeleniumLibrary  Capture Page Screenshot when provide a filename for file I receive

No keyword with name 'Capture Page Screenshot  myfile_name' found error message



I am using a resource file and executing an individual test case from a suite.  I have tried adding the SeleniumLibrary to either resource.robot file and directly  in the test case file, but the same error is indicated.

I have seen that [capture page screenshot] file_name, should work without issue, online and in many tutorials.  It only works on my system if I accept the default and not provide a filename.


Thanks

KK

Kk Kruups

unread,
Feb 20, 2020, 9:11:06 PM2/20/20
to robotframework-users
For folks who may run into same issue:

From Bryan Oakley via slack channel [robotframework]:

Read the error closely - it's saying there's no keyword named Capture Page Screenshot myfile_name , not that there's no keyword named Capture Page Screenshot That's because you only have one space between "Screenshot" and "myfile".

Bryan saved the day.

Thanks Again!
Reply all
Reply to author
Forward
0 new messages