Chromedriver cannot get window size from Electron Application using Java API
violinner opened this issue · 1 comments
While testing a packaged Electron Application with Java, Chromedriver,
and trying to get the current window size using this code:
WebDriver driver;
...
Window aWindow = driver.manage().window();
Dimension size = aWindow.getSize();
getSize() fails with the error below.
Can the Electron chromedriver.exe be configured to set/get window positition?
Also, can chromedriver for Electron be configured to execute JavaScript experessions?
Error:
EXCEPTION:org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
(Session info: content shell=)
(Driver info: chromedriver=2.21
(eda589282bd7729f36960d2e669d4b81375b897c),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.11 seconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: . . . os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={chromedriverVersion=2.21 (eda589282bd7729f36960d2e669d4b81375b897c), takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
This will be fixed in Firefox version 54, which requires a Selenium release after version 3.4.0.
I will wait for Selenium and FF 54 ESR.