rshf / chromedriver

Automatically exported from code.google.com/p/chromedriver
2 stars 1 forks source link

ChromeDriver 2 not taking full page screenshots on Chrome 28 #434

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using RemoteDriver (Java - Hub - Windows 7 Chrome 28 station), run:

WebDriver driver = null;
DesiredCapabilities capabilities = null;
       capabilities = DesiredCapabilities.chrome();
        capabilities.setJavascriptEnabled(true);
        capabilities.setPlatform(platform);
        capabilities.setCapability("chrome.switches", Arrays.asList("--start-maximized"));

//Initialize to a grid/remote chrome
option.setRemoteDriverHost(<URL of a Grid>);        

driver = new RemoteWebDriver("http://www.cnn.com", option.getCapabilities());

2. Take a screenshot on the remote Browser using:

WebDriver augmentedDriver = new Augmenter().augment(driver); 
screenshot =((TakesScreenshot) 
augmentedDriver).getScreenshotAs(OutputType.FILE);

(being Screenshot the file)

3. Screenshot is not full page - it's just whatever you can see on the screen. 
No scrolling is hapenning

Simplified test case or site demonstrating the problem:

What version of the product are you using? On what operating system?
ChromeDriver =  ChromeDriver server for win32 (v2.1.210652) supports Chrome 
v27-30
Chrome =  Version 28.0.1500.72 m
OS = Win 7

Please attach chromedriver.log to your bug report if possible:

14:43:31.344 INFO - Started org.openqa.jetty.jetty.Server@73871392
14:43:31.344 INFO - using the json request : 
{"class":"org.openqa.grid.common.RegistrationRequest","capabilities":[{"sel
eniumProtocol":"WebDriver","platform":"WINDOWS","browserName":"chrome","maxInsta
nces":"5"}],"configuration":{"port":3333
,"host":"10.57.60.49","hubHost":"<remote host 
url>","registerCycle":5000,"hub":"http://<remote host 
url>:4444/grid/register","url":"http://10.57.60.49:3333","remoteHost":"http://10
.57.60.49:3333","register"
:true,"proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy","maxSession":5
,"browser":"browserName=chrome,maxInstan
ces=5,platform=WINDOWS","role":"node","hubPort":4444,"timeout":45000}}
14:43:31.344 INFO - starting auto register thread. Will try to register every 
5000 ms.
14:43:31.344 INFO - Registering the node to hub :http://<remote host 
url>:4444/grid/register
14:43:40.376 INFO - Executing: [new session: {platform=WINDOWS, 
javascriptEnabled=true, browserName=chrome, version=, ch
rome.switches=[--start-maximized]}] at URL: /session)
14:43:40.408 INFO - Creating a new session for Capabilities [{platform=WINDOWS, 
javascriptEnabled=true, browserName=chro
me, chrome.switches=[--start-maximized], version=}]
Started ChromeDriver (v2.1) on port 14348
14:43:49.591 INFO - Done: /session
14:44:00.452 INFO - Executing: 
org.openqa.selenium.remote.server.handler.GetSessionCapabilities@677515f7 at 
URL: /sessio
n/58dc1d36-d561-484e-bee9-79fcf68992de)
14:44:00.454 INFO - Done: /session/58dc1d36-d561-484e-bee9-79fcf68992de
14:44:00.475 INFO - Executing: [get: http://www.cnn.com] at URL: 
/session/58dc1d36-d561-484e-bee9-79fcf68992de/url)
14:44:09.127 INFO - Done: /session/58dc1d36-d561-484e-bee9-79fcf68992de/url
14:44:09.225 INFO - Executing: [delete all cookies] at URL: 
/session/58dc1d36-d561-484e-bee9-79fcf68992de/cookie)
14:44:09.750 INFO - Done: /session/58dc1d36-d561-484e-bee9-79fcf68992de/cookie
14:44:09.758 INFO - Executing: [get: http://www.cnn.com] at URL: 
/session/58dc1d36-d561-484e-bee9-79fcf68992de/url)
14:44:11.934 INFO - Done: /session/58dc1d36-d561-484e-bee9-79fcf68992de/url
14:44:11.946 INFO - Executing: [take screenshot] at URL: 
/session/58dc1d36-d561-484e-bee9-79fcf68992de/screenshot)
14:44:12.318 INFO - Done: 
/session/58dc1d36-d561-484e-bee9-79fcf68992de/screenshot
14:44:12.848 INFO - Executing: [close window] at URL: 
/session/58dc1d36-d561-484e-bee9-79fcf68992de/window)
14:44:25.546 INFO - Done: /session/58dc1d36-d561-484e-bee9-79fcf68992de/window

Original issue reported on code.google.com by pedrou.r...@gmail.com on 29 Jul 2013 at 9:45

GoogleCodeExporter commented 9 years ago
Missed this on my code:

capabilities.setPlatform(Platform.WINDOWS);

Original comment by pedrou.r...@gmail.com on 29 Jul 2013 at 9:53

GoogleCodeExporter commented 9 years ago
Looks like a duplication of issue 294 too 
(https://code.google.com/p/chromedriver/issues/detail?id=294)

Original comment by oren.ru...@applitools.com on 5 Aug 2013 at 7:58

GoogleCodeExporter commented 9 years ago

Original comment by kka...@google.com on 6 Aug 2013 at 2:50