Error 37 Screenshot
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 25 Star 54 Fork 55 jintoppy/protractor-html-screenshot-reporter Code failed to capture tab unknown error Issues 37 Pull requests 2 Projects 0 Pulse Graphs New org.openqa.selenium.webdriverexception: unknown error: cannot take screenshot issue Unknown error: cannot take screenshot #64 Open chirkovevgeny opened this Issue Jul 29, 2015 ·
Chromedriver Take Screenshot
4 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants chirkovevgeny commented Jul 29, 2015 I am
Chrome Extension Aapnijgdinlhnhlmodcfapnahmbfebeb
getting an error when execute the tests that involves opening new browser tab. Below is the stacktrace: UnknownError: unknown error: cannot take screenshot from unknown error: Failed to capture tab: unknown error JavaScript stack: Error: Failed to capture tab: unknown error at checkForExtensionError (chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/background.js:14:17) at Object.callback (chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/background.js:37:5) at safeCallbackApply (extensions::sendRequest:21:15) at handleResponse (extensions::sendRequest:72:7) cannot get automation extension (Session info: chrome=44.0.2403.125) (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Mac OS X 10.9.5 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 100 milliseconds Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50' eddiemonge commented Jul 31, 2015 are you switching to that tab? chirkovevgeny commented Aug 3, 2015 Yes I switch to that tab to validate URL eddiemonge commented Aug 3, 2015 What is the code you are using to do that? Also, you should wrap your code in triple backticks so it formats correctly and is easier to read. chirkovevgeny commented Aug 3, 2015 @eddiemonge , thank you for fast response, I have formatted the post to be more readable, thanks for pointing out. Here is the code that handles windows switches: this.closeNewSocialWindow = function(socialItem) { var isPopUpShowed = function(){ return browser.driver.getAllWindowHandles().then(function(handles){ return handles.length>1; }); }; browser.wait(isPopUpShowed,timeout).then(function(){ browser.wait(browser.driver.getAllWindowHandles(),timeout).then(function (handles) { var originalWindow = handles[0]; var popUp = handles[1]; browser.switchTo().window(popUp); browser.getWindowHandle().then(function(handle) { expect(handle).toBeDefined(); expect(handle)
some strange extension output ‹ Prev 3 of 263 Next › Starred by 48 users Reported by nikita.m...@gmail.com, Apr 22 2015 Back to list Status: Available Owner: ---- https://github.com/jintoppy/protractor-html-screenshot-reporter/issues/64 Pri-1 Sign in to add a comment trying to take screenshot from driver and getting this Error: Failed to capture tab: unknown error at checkForExtensionError (chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/background.js:14:17) at Object.callback (chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/background.js:37:5) at safeCallbackApply (extensions::sendRequest:21:15) at https://bugs.chromium.org/p/chromedriver/issues/detail?id=1083 handleResponse (extensions::sendRequest:73:7) (Session info: chrome=42.0.2311.90) (Driver info: chromedriver=2.15.322455 (ae8db840dac8d0c453355d3d922c91adfb61df8f),platform=Mac OS X 10.9.5 x86_64) Project Member Comment 1 by gmanikpure@chromium.org, Apr 22 2015 Processing Labels: Needs-Feedback I am not able to reproduce the issue. Tried with both python binding and Java binding Chromedriver - 2.15 Chrome browser - 42.0.2311.90 Windows 8.1 and Ubuntu 14.04 Python code:- import time from selenium import webdriver browser = webdriver.Chrome(executable_path="C:\\Users\\chrome-bot\\Downloads\\chromedriver_2.15\\chromedriver.exe", service_args=["--verbose", "--log-path=C:\\Users\\chrome-bot\\Music\\Chromedriver logs\\Screenshot.log"]) browser.get('http://google.com/') browser.find_element_by_name('q').send_keys("google testing") browser.find_element_by_name('q').submit() browser.save_screenshot('screenshot.png') Java code:- System.setProperty("webdriver.chrome.driver", "C:\\Users\\chrome-bot\\Downloads\\chromedriver_2.15\\chromedriver.exe"); WebDriver driver = new RemoteWebDriver( new URL("http://localhost:4444/wd/hub"), DesiredCapabilities.chrome()); driver.manage().timeouts().implicitlyWait(1,TimeUnit.MINUTES); driver.get("http://google.com/"); File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(srcFile, new File("C:/Users/chrome-bot/Downloads/screenshot.png")); Could
their respective owners in the US and other countries. Privacy Policy | Legal | Steam Subscriber Agreement | Refunds STORE Featured Explore Curators Wishlist News Stats COMMUNITY Home Discussions Workshop Greenlight Market Broadcasts ABOUT SUPPORT http://steamcommunity.com/groups/SteamClientBeta/discussions/1/364042703855945321/ Install Steam login | language Български (Bulgarian) čeština (Czech) Dansk (Danish) Nederlands (Dutch) Suomi (Finnish) Français (French) Deutsch (German) Ελληνικά (Greek) Magyar (Hungarian) Italiano (Italian) 日本語 (Japanese) 한국어 (Korean) Norsk (Norwegian) Polski (Polish) Português (Portuguese) Português-Brasil (Portuguese-Brazil) Română (Romanian) Русский (Russian) 简体中文 (Simplified Chinese) Español (Spanish) Svenska (Swedish) 繁體中文 (Traditional Chinese) ไทย (Thai) Türkçe (Turkish) Українська (Ukrainian) Help us translate Steam STEAM GROUP Steam Client Beta unknown error SteamBeta Join Group STEAM GROUP Steam Client Beta SteamBeta 188,007 MEMBERS 10,293 IN-GAME 31,432 ONLINE Founded 8 January, 2013 Overview Announcements Discussions Events Members Comments Overview Announcements Discussions Events Members Comments All Discussions > General Discussions > Topic Details XxHellzGuardian View Profile View Posts 25 May @ 3:37pm Screenshot error Have An Issuewhen i try to upload screenshots in steam beta client gives me error and error 37 screenshot when i opted out of the beta i can upload dose anyone know why or dose steam or valve have to fix? < > Showing 1-9 of 9 comments Teutep View Profile View Posts 25 May @ 4:02pm It's a beta issue, yes. #1 XxHellzGuardian View Profile View Posts 25 May @ 4:05pm Originally posted by Teutep:It's a beta issue, yes. oh are they fixing it? #2 Teutep View Profile View Posts 25 May @ 4:17pm Originally posted by XxHellzGuardian:Originally posted by Teutep:It's a beta issue, yes. oh are they fixing it? Hopefully, there's more than one thread on the Bug Reports -section about it. #3 Lycairin View Profile View Posts 25 May @ 10:29pm Originally posted by XxHellzGuardian:Have An Issuewhen i try to upload screenshots in steam beta client gives me error and when i opted out of the beta i can upload dose anyone know why or dose steam or valve have to fix? Guess for now going back to ol opt out of beta participation days #4 XxHellzGuardian View Profile View Posts 25 May @ 10:30pm Originally posted by Lycairin:Originally posted by XxHellzGuardian:Have An Issuewhen i try to upload screenshots in steam beta