Giter Club home page Giter Club logo

chromedriver's People

Contributors

googlecodeexporter avatar

Watchers

 avatar

chromedriver's Issues

Can't test blank/empty file upload scenarios

What steps will reproduce the problem?
1.Getting an exception saying:File does not exist on the file system (WARNING: 
The server did not provide any stacktrace information)
even though the file is present.
2. Description of the tag

<div class="field">
<div class="fileInputWrapper">
<label class="hideoff" for="package_chooseLocalFile">Attach Local File</label>
<input id="chooseLocalFile" class="hiddenInput" type="file" title="Browse My 
Computer" name=" LocalFile0">
<input id="localBrowse" class="browse visibleInput" type="button" 
onclick="javascript:alert('Use the file chooser previous to this button to 
choose a local file." value="My_Computer">
</div>
</div>

3. Hear we r passing the location of the file. with xpath 
"//input[@id='chooseLocalFile']" , Working fine with firefox
and IE browsers

Simplified test case or site demonstrating the problem:


What version of the product are you using? On what operating system?
ChromeDriver = 19.0.1068.0
Chrome = 19
OS = Windows/Mac

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

Original issue reported on code.google.com by [email protected] on 29 Mar 2012 at 11:59

Drive 'Print Preview' functionality, with screenshot support

I'm using chromedriver as part of a CI build to ensure that I don't 
accidentally introduce bugs.

One feature which is important in a project I'm working on is the ability for 
visitors to the site to print out the page.

It would be fantastic if I could bring up the built-in chrome print preview 
dialog, then compare the output it generates with some reference output (using 
imagemagick or similar) to ensure I haven't broken printing.

Original issue reported on code.google.com by daniel.r.heath on 23 Feb 2012 at 4:43

Create backwards compat tests

We should have tests that check that a new chromedriver release runs with the 
current stable version of Chrome. We'll need a way in the code to mark tests 
that are only expected to work with trunk chrome.

Original issue reported on code.google.com by [email protected] on 30 Jan 2012 at 6:03

  • Merged into: #8

NSPathStore2 autoreleased with no pool in place

What steps will reproduce the problem?
1.
WebDriver = new ChromeDriver();
2.
3.

Simplified test case or site demonstrating the problem:


What version of the product are you using? On what operating system?
ChromeDriver = 19.0.1068.0
Chrome = 17.0.963.83
OS = MacOsX 10.7.3

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

Started ChromeDriverport=44069
version=19.0.1068.0
log=/Users/onorlander/src/git/polopoly/test/webdriver-tests/chromedriver.log
objc[9361]: Object 0x6c0794f0 of class NSPathStore2 autoreleased with no pool 
in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[9361]: Object 0x6c0796f0 of class NSPathStore2 autoreleased with no pool 
in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[9361]: Object 0x6c0797f0 of class NSConcreteData autoreleased with no pool 
in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[9361]: Object 0x6c079860 of class __NSCFString autoreleased with no pool 
in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[9361]: Object 0x6c079650 of class NSBundle autoreleased with no pool in 
place - just leaking - break on objc_autoreleaseNoPool()

Original issue reported on code.google.com by [email protected] on 27 Mar 2012 at 12:10

Attachments:

simulate key events at highest level in chrome

From jari:

Chrome Version       : 15.0.854.0 dev
OS Version: OS X 10.6.8
chromedriver: r97846

(ruby example)

  input_element.send_keys([:control, 'a'], :backspace) 

This should clear the input field, and it works well on Linux/Windows. On OS X, 
I've tried both :control and :command:

  input_element.send_keys([:control, 'a'], :backspace) 
  input_element.send_keys([:command, 'a'], :backspace)

but only the :backspace seems to have an effect (one character is deleted from 
the field). With Firefox, :command works on OS X.

Original issue reported on code.google.com by [email protected] on 6 Mar 2012 at 12:58

Location-based element clicking should happen synchronously

Currently, ChromeDriver calculates the location of an element, which may 
require executing multiple scripts for scrolling and calculating locations 
across multiple frames. This requires several passes back and forward between 
chromedriver, the browser, and the renderer, which may take a few milliseconds. 
After the location is determined, a click is sent to that location. Within that 
time, the element location may no longer be correct due to movement in the page.

The element's location should be determined and a click should be sent in the 
same task on the render thread. This will enable ChromeDriver to click 
constantly moving elements as well as reducing flakiness that occurs because a 
test doesn't correctly wait for an element to stop moving.

Original issue reported on code.google.com by [email protected] on 27 Feb 2012 at 5:50

  • Merged into: #28

ChromeDriver.manage().window() returns a null object.

What steps will reproduce the problem?
1. Just get the ChromeDriver object and call a getPosition() or getSize() on 
the manage().window() object to observe a NullPointerException.

Simplified test case or site demonstrating the problem:

 ChromeDriver driver = new ChromeDriver();
 driver.manage().window().getPosition();

What version of the product are you using? On what operating system?
ChromeDriver = 18.0.995.0
Chrome = 17.0
OS = Mac

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

 Caused by: java.lang.NullPointerException
   at     org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.getPosition(RemoteWebDriver.java:624)


StackOverflow discussion here: 
http://stackoverflow.com/questions/8918389/nullpointerexception-while-calling-fu
nctions-on-remotewindow

Original issue reported on code.google.com by [email protected] on 13 Feb 2012 at 9:35

Chrome WebDriver hangs with "Waiting for all views to stop loading"

My Chrome WebDriver Selenium Python project visits many URLs in sequence.

Every now and then Chrome WebDriver hangs with "Waiting for all views to stop 
loading".

Sometimes it gets beyond "waiting for all views to stop loading", but still 
hangs. Here is an example:

$ tail -f chromedriver.log 

[1329953034124][FINE]:    Command received 
(/session/75c147fc53b9de16ec60b4d511fe2296/url) with params {
   "sessionId": "75c147fc53b9de16ec60b4d511fe2296",
   "url": "http://www.latimes.com/"
}

[1329953034124][FINER]:   Waiting for all views to stop loading...
[1329953034154][FINER]:   Done waiting for all views to stop loading

If I look at the browser, the loading spinner just keeps going and the tab is 
completely unresponsive. Clicking within the tab doesn't do anything.


Software versions:

Mac OS X 10.6.8
chromedriver 18.0.995.0
selenium 2.19.1 (from PyPI)

Code:

caps = DesiredCapabilities.CHROME;
caps['chrome.switches'] = [     
    "--user-data-dir=" + os.getcwd() + "/Profiles",
    "--disk-cache-size=1",          
    "--media-cache-size=1",         
    ("--load-extension=" + self.extension_directory if load_extension else "--disable-extensions")
]
caps['chrome.verbose'] = True   

browser = webdriver.Remote('http://127.0.0.1:9515' caps)

browser.delete_all_cookies()

for url in urls: browser.get(url)

Original issue reported on code.google.com by [email protected] on 28 Feb 2012 at 2:26

  • Merged into: #9

Implicit waits should also apply to WebElement manipulation preconditions

From http://code.google.com/p/selenium/issues/detail?id=711:

Consider:

    driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
    WebElement button = driver.findElement(By.id("my-button"));
    button.click();

If "button" is not present on the DOM, findElement() will wait up to 3 seconds 
for it to be added before throwing NoSuchElementException.

If "button" is not visible yet, click() will immediately throw an 
ElementNotVisibleException.

Implicit waits should be used to wait for:
- locating elements
- element UI manipulation preconditions (visible, enabled, etc.)

Original issue reported on code.google.com by [email protected] on 5 Mar 2012 at 10:02

Add support for element clicking instead of location-based clicking

Location-based clicking causes users a lot of problems. Although sometimes 
these issues can illuminate website layout problems with chrome, mostly they 
are just annoying and time consuming. Consider adding a way to deliver a click 
event to an element without a location.

Original issue reported on code.google.com by [email protected] on 5 Mar 2012 at 10:18

Implement page load timeout API

I am not sure exactly what the consensus on this was/is, but we need a way to 
allow users to ignore a page load that takes too much time.

Original issue reported on code.google.com by [email protected] on 30 Jan 2012 at 5:59

Switch to frame element does not work if frame index changes

If the frame ordering changes, it may no longer point to the correct or even a 
valid frame.

As a workaround, do the following:
1) Find the frame element
2) Set the ID or the name of the element to something (unless it already has 
one)
3) Switch to the frame by its ID or name

Original issue reported on code.google.com by [email protected] on 6 Mar 2012 at 1:08

SSL Certification error comes so cannot proceed

What steps will reproduce the problem?
1. Open a URL using webdriver
2. Chrome new window gets opened
3. SSL certification error page gets opened (This is probably not the site you 
are looking for!). I know this is issue with our site but I want to continue.
4. Either I want to add this site and dont want to get this page again or I 
want to click proceed anyway but as I am not able to see view source of this 
page and so cannot continue from here.

Please help

Simplified test case or site demonstrating the problem:
SSL Certification error comes so cannot proceed.

What version of the product are you using? On what operating system?
ChromeDriver = 18.0.1022.0
Chrome = 18.0.1025.142m
OS = XP

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

[0316/140534:ERROR:automation_json_requests.cc(59)] JSON request failed: 
GetIndicesFromTab
    with error: Could not find tab among current browser windows
[0316/140534:ERROR:automation_proxy.cc(389)] Channel error in AutomationProxy.
[0316/141505:ERROR:automation_proxy.cc(389)] Channel error in AutomationProxy.
[0316/143037:ERROR:automation_proxy.cc(389)] Channel error in AutomationProxy.
[0316/143038:ERROR:automation_proxy.cc(389)] Channel error in AutomationProxy.
[0316/143038:ERROR:automation_proxy.cc(389)] Channel error in AutomationProxy.
[0316/144952:ERROR:automation_json_requests.cc(59)] JSON request failed: 
GetIndicesFromTab
    with error: Could not find tab among current browser windows
[0316/144952:ERROR:automation_proxy.cc(389)] Channel error in AutomationProxy.

Original issue reported on code.google.com by [email protected] on 5 Apr 2012 at 8:12

Handle windows opened by showModalDialog

Currently, e.g. a click that triggers a showModalDialog call will block. Users 
should be able to interact with the window through the normal window switching 
APIs.

Simplified test case or site demonstrating the problem: 
https://gist.github.com/2052020

What version of the product are you using? On what operating system?
ChromeDriver = 18.0.1022.0

Original issue reported on code.google.com by jari.bakken on 16 Mar 2012 at 7:30

Failed to send keys because cannot focus element in Chrome

Hi,

When i trying to inssert a vlue in a textbox using the sendkeys for the Chrome 
webdriver it's giving an exception saying that 
"Failed to send keys because cannot focus element"

What steps will reproduce the problem?

ChromeDriver theDriver = new ChromeDriver();

 theDriver.Navigate().GoToUrl("https://secure.tesco.com/register/?from=http://www.tesco.com/groceries/%3fanonLogin=true%26vCount=1");

IWebElement theElement = theDriver.FindElementById("loginID");
theElement.SendKeys("Test");


What is the expected output? What do you see instead?
The expected output is it should insert the value in the textbox.

Selenium version: selenium-dotnet-2.4.1
OS: XP
Browser: Chrome
Brower version: 13.0.782.215 m

Exception Details:--

System.InvalidOperationException: Failed to send keys because cannot focus 
element.
   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.InternalExecute(DriverCommand driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebElement.Execute(DriverCommand commandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebElement.SendKeys(String text)

Original issue reported on code.google.com by [email protected] on 24 Aug 2011 at 4:20

WebDriver logging API should return 64-bit integer timestamps as millis since unix epoch

Currently ChromeDriver returns the time as millis since the server was started. 
This is because the chromium json code does not allow 64-bit integers. It 
seems, since js only has 32-bit integers, that chromium devs are reluctant to 
add 64-bit support. If so, might be best to just fork own version of json code 
for chromedriver use for now.

Original issue reported on code.google.com by [email protected] on 30 Jan 2012 at 5:40

POST geolocation command doesn't obey the spec

The wire protocol defines a command for setting and getting geolocation.

  http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/location

These are currently only available in the mobile drivers, but would be great to 
have in chromedriver as well.

Original issue reported on code.google.com by jari.bakken on 30 Jan 2012 at 9:35

Cannot dismiss javascript alert if if has been generated by an onbeforeunload event

From http://code.google.com/p/chromium/issues/detail?id=92488:

Hi,  

  I already submitted this to the Selenium project but then realised it's probably a Chromium issue so I'm reposting here.


What steps will reproduce the problem?
1. Visit the attached html page 
2. Click "back" to fire alert (test code attached)
3. Try to accept or dismiss the alert

What is the expected output? What do you see instead?

I expect the alert to disappear but the test hangs.

Note that if the alert is generated by an onClick from a link, it works fine.

When I manually click on the alert, the following exception is generated in 
Chrome driver:

[0811/184259:ERROR:automation_json_requests.cc(59)] JSON request failed: 
AcceptOrDismissAppModalDialog
    with error: No modal dialog is showing



Selenium version: 2.3.0
OS: Tried both WinXP and Mac
Browser: Chrome
Brower version:13.0.782.112


---- TEST CODE ----

driver.get("http://www.cnn.com");
driver.get( URL_TO_SAMPLE_HTML );

System.out.println("Navigating back");
driver.executeScript("javascript: setTimeout(\"history.go(-1)\", 2000)");  //I 
even tried commenting this line out and navigating back manually
Thread.sleep(5000);

//By now, the alert has been triggered
//Accept alert
System.out.println("Accepting Alert");
Alert alert = driver.switchTo().alert();
alert.accept();
System.out.println("Alert accepted");  //This line is never reached

Original issue reported on code.google.com by [email protected] on 5 Mar 2012 at 10:20

chrome driver not generating the cache files in default location

Hi, I ma facing a problem getting cache files of chrome through selenium 
webdriver.
Every time I run the chrome webb rowser through slenium using chromedriver, I 
dont see any file in the default cache folder.
Running chrome directly by double clicking exe or through programs, it 
instantly creates files in cache.

Please I need help immediately, as I have to finish this project before 
deadline. 

Thanks

What version of the product are you using? On what operating system?
ChromeDriver = 18.0.995.0
Chrome = 18.0.1025.142 m
OS =  Windows XP Professional 2002 SP3

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

Original issue reported on code.google.com by [email protected] on 2 Apr 2012 at 10:34

Running JUnit via Mavin, chromedriver tests randomly end with two DELETE session commands

(cloned from http://code.google.com/p/selenium/issues/detail?id=3321)

I have a set of JUnit tests that I run as part of my build pipeline. These are 
executed via Maven commands and run multi-threaded. All of the tests in each 
class file run concurrently, each in its own browser session.

Most of the time these tests run successfully. Periodically, however, one or 
more test will end with a "Session not found" error.

Reading through the log of one of the failed tests, I noticed that the test 
itself completed successfully. The error was caused by the server sending two 
DELETE session commands afterward.

=> The first DELETE was processed successfully, deleting the session.
=> Consequently, the second DELETE failed with "Session not found".

I attached an example log file showing this issue from the client side

What steps will reproduce the problem?
1. Create a test class with multiple JUnit tests in it
2. Set your project to use ChromeDriver
   (Other RemoteWebDriver configs may also experience this issue.)
3. Run the test class multi-threaded via Maven
4. Repeat until you encounter the "Session not found" error

Selenium version: 2.14.0
ChromeDriver version: 18.0.995.0
OS: Windows XP / Windows 7
Java JDK: 1.6.0 (30)
JVM Version: 20.5-b03
Browser: Chrome
Brower version: 16.0.912.77

Original issue reported on code.google.com by [email protected] on 24 Feb 2012 at 11:32

Attachments:

Chromedriver compatible with chrome 12

I cant launch chromedriver 19 from the command line neither run it with an 
older chrome version, which its necessary to the project I am working with..

Some help please?

Original issue reported on code.google.com by [email protected] on 26 Mar 2012 at 2:24

Unable to launch Chrome on windows

Chrome Version       : 18.0.1025.142 m>
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)

I don't know if this issue should be posted here or webdriver project. Since 
this is more on the chromium project side, I think , i am posting here, please 
feel free to tell me to file this bug on the webdriver tracking side, if you 
think this is not related to this project. 

Big picture:

I am trying to test on chrome via Selenium 2(webdriver)

What steps will reproduce the problem?
1.Download appropriate prebuilt server as instructed on the webdriver wiki 
page.http://code.google.com/p/selenium/wiki/ChromeDriver
2.specified its location via the webdriver.chrome.driver system property
3. Instantiate the driver

Here is my code;

System.out.println("Google chrome is selected");
System.setProperty("webdriver.chrome.driver","C:\\Users\\Murat\\Downloads\\chrom
edriver_win_18.0.1022.0\\chromedriver.exe"); 
System.out.println(System.getProperty("webdriver.chrome.driver"));
driver = new ChromeDriver();
driver.get(baseUrl);


What is the expected result?
It should open a browser.

What happens instead?
Here is the stack trace.

[TestNG] Running:
  C:\Users\Murat\AppData\Local\Temp\testng-eclipse-264626032\testng-customsuite.xml

Google chrome is selected
C:\Users\Murat\Downloads\chromedriver_win_18.0.1022.0\chromedriver.exe
log4j:WARN No appenders could be found for logger 
(org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
Mar 30, 2012 2:02:33 PM org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Executing: [null, newSession {"desiredCapabilities":"Capabilities 
[{platform=ANY, browserName=chrome, version=}]"}]
Started ChromeDriver
port=32537
version=18.0.1022.0
log=C:\Users\Murat\workspaceold2\Selenium2Minted\chromedriver.log
.\test\automation\proxy_launcher.cc(106): error: Value of: app_launched
  Actual: 1
Expected: AUTOMATION_SUCCESS
Which is: 0
Error while awaiting automation ping from browser process
.\test\automation\proxy_launcher.cc(303): error: Value of: browser.get()
  Actual: false
Expected: true
FAILED CONFIGURATION: @BeforeMethod setUp("ch")
org.openqa.selenium.WebDriverException: Unable to either launch or connect to 
Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: 
C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe 
(WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 91.29 seconds
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:56:43'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', 
java.version: '1.6.0_22'
Driver info: driver.version: ChromeDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:147)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:113)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:424)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:123)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:78)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:120)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:87)
    at com.minted.SeleniumTestCase.setUp(SeleniumTestCase.java:75)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:550)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:638)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:891)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1215)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:758)
    at org.testng.TestRunner.run(TestRunner.java:613)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1170)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1095)
    at org.testng.TestNG.run(TestNG.java:1007)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)

SKIPPED CONFIGURATION: @AfterMethod tearDown
SKIPPED: mintedHome("http://www.stage.minted.com")

===============================================
    Default test
    Tests run: 1, Failures: 0, Skips: 1
    Configuration Failures: 1, Skips: 1
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
===============================================

[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@1572e449: 7 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@30ec4a87: 12 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter@7df17e77: 8 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@33010058: 21 ms
[TestNG] Time taken by [TestListenerAdapter] Passed:0 Failed:0 Skipped:0]: 5 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@34fbb7cb: 26 ms



Please provide any additional information below. Attach a screenshot if
possible.


Original issue reported on code.google.com by [email protected] on 30 Mar 2012 at 9:21

Chrome profile setup instructions

I think the chromedriver documentation on wiki need a small update.

When chromedriver starts chrome on Linux, the Chrome's user profile could be 
different from the one created by the user. I think it would be helpful to 
mention how to setup a new profile, configure it if needed and specify it in 
Webdriver client code as a capabilities option.


Original issue reported on code.google.com by [email protected] on 24 Mar 2012 at 12:50

No full screen after starting regression Selenium test

Chrome Version       : 18.0.1025.142
OS Version: 5.1 (Windows XP)
URLs (if applicable) :
Other browsers tested:
Safari 5: n/a
Firefox 11: OK
IE 8: OK 

issue:

When we starting a regression test on chrome the screen is set to full screen, 
this is necessarily to fill in username and password, else Selenium-RC could 
not manage in browser testing.
When we do the same on Canary 20.0.1090.0 it works fine, the screen is set to 
full screen and the tests are running fine.


What steps will reproduce the problem?
1. Start the selenium standalone server
2. Change when neceserraly the XML file
3. Start the Selenium test

We run a automatic selenium test and therefore there is no reproduction script.
i put a attachment to show what files are used to run the selenium test

What is the expected result?
After starting the test, chrome opens the application in full screen


What happens instead?
Chrome still stay's in the windows task bar, and we must manually put it back 
with right click and than maximize


Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like 
Gecko) Chrome/18.0.1019.1 Safari/535.19


Original issue reported on code.google.com by [email protected] on 4 Apr 2012 at 6:05

Attachments:

Disable external extensions by default

External extensions (those that are installed on the system and apply to all 
profiles) can interfere with tests. The default should be no extensions save 
those that the user explicitly specifies. This particularly causes problems for 
devs running tests on their own box, especially if the extension is forced by 
enterprise policy.

The right way to fix this is probably to add a command line flag to chrome for 
disabling them.

Original issue reported on code.google.com by [email protected] on 30 Jan 2012 at 5:31

Add support for setting arbitrary Chrome preferences.

What steps will reproduce the problem?
1.Use disable-image chrome switch for Chrome Driver (C#)
2.capabilities.SetCapability("chrome.switches", new string[1] { 
"disable-images" });

I'm using the following code, however it's still loading the images:

DesiredCapabilities capabilities = DesiredCapabilities.Chrome();
capabilities.SetCapability("chrome.switches", new string[1] { "disable-images" 
});
IWebDriver driver = new ChromeDriver(@"C:\chromedriver\", capabilities);

What version of the product are you using? On what operating system?
ChromeDriver = 18.0.1022.0
OS = Windows Vsita

Original issue reported on code.google.com by [email protected] on 24 Feb 2012 at 3:43

Incorrect implementation of web storage commands

According to the wire protocol:

 http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/local_storage
 http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/session_storage

Both of these resources should accept POST with a `{key: "...", value: "..."}` 
object. It looks like chromedriver implementation 
(http://codereview.chromium.org/9149013) instead accepts POSTs for the 
`/session/$sessionId/local_storage/key/$key` resource. (Although I agree that 
would make sense, it's not how it's implemented in other drivers).

Original issue reported on code.google.com by jari.bakken on 30 Jan 2012 at 10:51

Create perf tests

Some users have reported performance regressions. We should have tests that 
allow us to compare the time it takes for some set of commands.

Original issue reported on code.google.com by [email protected] on 30 Jan 2012 at 6:00

Mac crashes when dismissing an alert (works ok with prompt/confirm)

Disabled chromedriver test testShouldAllowUsersToDismissAnAlertManually on mac, 
which was failing with:

[ RUN        ] 
selenium.test.selenium.webdriver.common.alerts_tests.AlertsTest.testShouldAllowU
sersToDismissAnAlertManually: "None"
2011-07-26 07:10:19.953 Chromium[84897:107] *** -[NSCFArray objectAtIndex:]: 
index (1) beyond bounds (1)


The workaround is to accept instead of dismiss an alert, but this should be 
fixed and the test reenabled.

Original issue reported on code.google.com by [email protected] on 5 Mar 2012 at 10:06

Unable to either launch or connect to Chrome exception when running chromedriver tests from MSBuild

From http://code.google.com/p/chromium/issues/detail?id=91340

Chrome Version    12.0.742.122   : I have also tried 14.0.835.15 dev-m
Chromedriver version chromedriver_win32_14.0.836.0.zip
OS: Windows Server 2008
Issue occur with all WebDriver versions up to the latest V2.3

Other browsers tested:
  Firefox and IE works.
issue:

We have a MSBuild setup that starts MSTests and excecutes a battery of various 
tests. Executing Firefox and IE tests with InternetExplorerDriver and 
FirefoxDriver works fine. Starting Chrome tests fails with following error 
messages.

Chromedriver log:
Started ChromeDriver
port=50938
version=14.0.836.0
[0802/110912:ERROR:proxy_launcher.cc(96)] WaitForInitialLoads failed.

TestResultLog

Error Message:
Test method SeleniumTests.ChromeDriverIssueTest.ChromeDriverTest threw 
exception: 
System.Reflection.TargetInvocationException: Exception has been thrown by the 
target of an invocation. ---> System.InvalidOperationException: Unable to 
either launch or connect to Chrome. Please check that ChromeDriver is 
up-to-date. Using Chrome binary at: 
C:\Users\roberth\AppData\Local\Google\Chrome\Application\chrome.exe

StackTrace
OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response 
errorResponse) in 
c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs: 
line 958
OpenQA.Selenium.Remote.RemoteWebDriver.Execute(DriverCommand 
driverCommandToExecute, Dictionary`2 parameters) in 
c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs: 
line 805
OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities 
desiredCapabilities) in 
c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs: 
line 773
OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, 
ICapabilities desiredCapabilities) in 
c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs: 
line 81
OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, 
ICapabilities capabilities, TimeSpan commandTimeout) in 
c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Chrome\ChromeDriver.cs: line 
121
OpenQA.Selenium.Chrome.ChromeDriver..ctor() in 
c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Chrome\ChromeDriver.cs: line 71
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, 
Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, 
Boolean& bNeedSecurityCheck)
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean 
skipCheckThis, Boolean fillCache)
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean 
skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
System.Activator.CreateInstance[T]()
CodedUITests.Framework.TestBases.WebDriversTestBase.GetWebDriver[T](String url) 
in 
D:\Dev\CrossBrowser\TestCode\CodedUITests\CodedUITests.Framework\TestBases\WebDr
iversTestBase.cs: line 43
SeleniumTests.ChromeDriverIssueTest.ChromeDriverTest() in 
D:\Dev\CrossBrowser\TestCode\CodedUITests\CodedUITests\SurveyEngine\TempChromeTe
st.cs: line 129


What steps will reproduce the problem?
1. Setup an MSBuild that starts an MSTest process that executes any 
chromedriver test.
2.
3.

What is the expected result?
Chrome should be opened and the tests executed

What happens instead?
Chromedriver and Chrome starts but nothing more happens. Chrome opens the 
about:blank page and says Loading... after about ~20 seconds Chrome is closed 
and the error message in chromedriver described above is visible.

Please provide any additional information below. Attach a screenshot if
possible.

If you execute the tests directly with MSTest instead of using MSBuild 
everything works fine with ChromeDriver.

Original issue reported on code.google.com by [email protected] on 5 Mar 2012 at 10:11

Error starting RemoteWebDriver with Chrome using chromedriver 19.x

Using JRuby 1.6.7 running Ruby 1.9.2 with the selenium-webdriver v2.20 gem and 
Selenium Server 2.20 

1. Start server with 
java -Dwebdriver.chrome.driver=chromedriver -jar 
selenium-server-standalone-2.20.0.jar
2. Start Ruby irb
3. In the console
> require 'selenium-webdriver'
> driver = Selenium::WebDriver.for :remote, :desired_capabilities => :chrome

EXPECT
Chrome browser opens (as it does using the 16.x and 18.x chromedrivers)

ACTUAL
Causes following errors...
14:55:16.323 INFO - Executing: [new session: {platform=ANY, 
javascriptEnabled=true, cssSelectorsEnabled=true, browserName=chrome, 
nativeEvents=false, rotatable=false, takesScreenshot=false, version=}] at URL: 
/session)
/var/www/apps/player/lib/qa/chromedriver_linux: 2: Syntax error: "(" unexpected
14:55:36.559 WARN - Exception thrown
java.util.concurrent.ExecutionException: 
org.openqa.selenium.WebDriverException: 
java.lang.reflect.InvocationTargetException
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: 
'2.6.38-13-generic', java.version: '1.6.0_22'
Driver info: driver.version: unknown
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
    at java.util.concurrent.FutureTask.get(FutureTask.java:111)
    at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:139)
    at org.openqa.selenium.remote.server.DefaultSession.<init>(DefaultSession.java:108)
    at org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:86)
    at org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:87)
    at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:62)
    at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:196)
    at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:580)
    at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:531)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:503)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
    at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
    at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
    at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
    at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
    at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
    at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
    at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.WebDriverException: 
java.lang.reflect.InvocationTargetException
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: 
'2.6.38-13-generic', java.version: '1.6.0_22'
Driver info: driver.version: unknown
    at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:73)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:57)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:177)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:63)
    ... 8 more
Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Could not 
start a new session. Possible causes are invalid address of the remote server 
or browser start-up failure.
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: 
'2.6.38-13-generic', java.version: '1.6.0_22'
Driver info: driver.version: ChromeDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:435)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:139)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:133)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:110)
    ... 13 more
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for 
ChromeDriver server to start.
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: 
'2.6.38-13-generic', java.version: '1.6.0_22'
Driver info: driver.version: ChromeDriver
    at org.openqa.selenium.chrome.ChromeDriverService.start(ChromeDriverService.java:166)
    at org.openqa.selenium.chrome.ChromeCommandExecutor.execute(ChromeCommandExecutor.java:46)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:415)
    ... 17 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out 
waiting for [http://localhost:13022/status, http://localhost:13022/healthz] to 
be available after 20001 ms
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:86)
    at org.openqa.selenium.chrome.ChromeDriverService.start(ChromeDriverService.java:164)
    ... 19 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: 
java.util.concurrent.TimeoutException
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:61)
    ... 20 more
Caused by: java.util.concurrent.TimeoutException
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
    at java.util.concurrent.FutureTask.get(FutureTask.java:119)
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
    ... 21 more
14:55:36.585 WARN - Exception: null

Original issue reported on code.google.com by [email protected] on 4 Apr 2012 at 7:00

chromedriver fails to connect to chrome using a given user profile when 2 drivers are opened using the same profile

What steps will reproduce the problem?
1. Instruct ChromeDriver to use a profile located in the root directory of a 
java class
2. Install AdBlock Extension
3. Create 2 instances of ChromeDriver

Simplified test case or site demonstrating the problem:

Java-Code:
ChromeOptions options = new ChromeOptions();
options.addArguments("--load-extension=chrome.adblock.extension");
options.addArguments("--user-data-dir=chrome.profile");
ChromeDriver driver = new ChromeDriver(options);
ChromeDriver driver2 = new ChromeDriver(options);

This produces the following error upon execution:

Started ChromeDriver
port=1712
version=18.0.995.0
Started ChromeDriver
port=13189
version=18.0.995.0
Something like "Created new window in current browser session": [[Neues Fenster 
in aktueller Browsersitzung erstellt.]]
[0210/165713:ERROR:automation_proxy.cc(387)] Channel error in AutomationProxy.
chrome/test/automation/proxy_launcher.cc:106: Failure
Value of: app_launched
  Actual: 5
Expected: AUTOMATION_SUCCESS
Which is: 0
Error while awaiting automation ping from browser process


What version of the product are you using? On what operating system?
ChromeDriver = 18.0.995.0 (also tested 18.0.1022.0, same problem)
Chrome = 18.0.1010.0 dev
OS = Linux x86_64 (Ubuntu 11.04)

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

Original issue reported on code.google.com by [email protected] on 10 Feb 2012 at 4:12

Attachments:

Clean up logging file

Log file is double spaced on windows. Log is too zealous with truncating 
strings to 40 chars. Perhaps log entry details should be indented?

Original issue reported on code.google.com by [email protected] on 30 Jan 2012 at 7:06

Read PDF contents when a PDF is navigated to in Chrome

I would like to be able to access the contents of a PDF which has been opened 
in the browser, but instead the page_source for a pdf page contains an <embed> 
element which references the PDF.

I've created a minimal test case here:

https://gist.github.com/2098515

This is needed to fetch the contents of chrome://print URLs as they cannot be 
fetched outside of chrome.

Original issue reported on code.google.com by daniel.r.heath on 19 Mar 2012 at 6:25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.