{"action":"created","issue":{"url":"https://api.github.com/repos/ncbi/robotframework-pageobjects/issues/59","labels_url":"https://api.github.com/repos/ncbi/robotframework-pageobjects/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/ncbi/robotframework-pageobjects/issues/59/comments","events_url":"https://api.github.com/repos/ncbi/robotframework-pageobjects/issues/59/events","html_url":"https://github.com/ncbi/robotframework-pageobjects/issues/59","id":102586642,"number":59,"title":"Is it possible to disable Capture Page Screenshot on failure?","user":{"login":"immitev","id":2420549,"avatar_url":"https://avatars.githubusercontent.com/u/2420549?v=3","gravatar_id":"","url":"https://api.github.com/users/immitev","html_url":"https://github.com/immitev","followers_url":"https://api.github.com/users/immitev/followers","following_url":"https://api.github.com/users/immitev/following{/other_user}","gists_url":"https://api.github.com/users/immitev/gists{/gist_id}","starred_url":"https://api.github.com/users/immitev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immitev/subscriptions","organizations_url":"https://api.github.com/users/immitev/orgs","repos_url":"https://api.github.com/users/immitev/repos","events_url":"https://api.github.com/users/immitev/events{/privacy}","received_events_url":"https://api.github.com/users/immitev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-23T04:33:25Z","updated_at":"2015-08-25T05:37:49Z","closed_at":null,"body":"I have been trying to disable running Capture Page Screenshot on failure (mainly because in some scenarios taking screenshots fails and the actual error becomes harder to see), but I can't find out how to do it. Any time a new Page object is initiated, I see in the log \"Capture Page Screenshot will be run on failure.\". I guess that another instance of the S2L gets loaded and it can't be just globally disabled with `BuiltIn().get_library_instance('Selenium2Library').register_keyword_to_run_on_failure = None`\r\n\r\nAny ideas how to approach this?\r\n"},"comment":{"url":"https://api.github.com/repos/ncbi/robotframework-pageobjects/issues/comments/134487057","html_url":"https://github.com/ncbi/robotframework-pageobjects/issues/59#issuecomment-134487057","issue_url":"https://api.github.com/repos/ncbi/robotframework-pageobjects/issues/59","id":134487057,"user":{"login":"immitev","id":2420549,"avatar_url":"https://avatars.githubusercontent.com/u/2420549?v=3","gravatar_id":"","url":"https://api.github.com/users/immitev","html_url":"https://github.com/immitev","followers_url":"https://api.github.com/users/immitev/followers","following_url":"https://api.github.com/users/immitev/following{/other_user}","gists_url":"https://api.github.com/users/immitev/gists{/gist_id}","starred_url":"https://api.github.com/users/immitev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immitev/subscriptions","organizations_url":"https://api.github.com/users/immitev/orgs","repos_url":"https://api.github.com/users/immitev/repos","events_url":"https://api.github.com/users/immitev/events{/privacy}","received_events_url":"https://api.github.com/users/immitev/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T05:37:49Z","updated_at":"2015-08-25T05:37:49Z","body":"Btw, the multiple initializations of the S2L library, mentioned above, seems to have another undesired side effect. When capturing screenshots from different page objects within a single test case, the files \"selenium-screenshot-X.png\" can get overwritten. Maybe I should rephrase my question as how to reuse a single instance of the S2L library, while instantiating new page objects?"}}