Issue 5871 in selenium: ChromeDriver fail to findElement with Function already created:concat. error

21 views
Skip to first unread message

sele...@googlecode.com

unread,
Jul 3, 2013, 3:49:39 AM7/3/13
to selenium-develope...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged

New issue 5871 by shijunj...@gmail.com: ChromeDriver fail to findElement
with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871


What steps will reproduce the problem?
ChromeDriver driver = new ChromeDriver();
String url
= "file:///C:/GitWorkSpace/TabletWebQEAutomation/TabletWeb/test-output/Single%20Group%20Suite/htmls/d7410017fd7d817fc91f1e25e1016e81.html#m";//Use
the attachment as the example
driver.get(url);
driver.findElement(By.id("email")).clear();
driver.quit();



What is the expected output? What do you see instead?
Exception throw out:
Started ChromeDriver
port=17729
version=26.0.1383.0
log=C:\GitWorkSpace\TabletWebQEAutomation\TabletWeb\chromedriver.log
Exception in thread "main" org.openqa.selenium.WebDriverException:
findElement execution failed;
Function already created: concat. (WARNING: The server did not provide any
stacktrace information)
Command duration or timeout: 55 milliseconds
Build info: version: '2.33.0',
revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22
12:00:17'
System info: os.name: 'Windows Server 2008', os.arch: 'x86',
os.version: '6.1 build 7600', java.version: '1.6.0'
Session ID: f435b6f3b2fcd158c38b77664350c6ef
Capabilities [{chrome.chromedriverVersion=26.0.1383.0, handlesAlerts=true,
rotatable=false, databaseEnabled=false, locationContextEnabled=false,
acceptSslCerts=false, applicationCacheEnabled=false,
cssSelectorsEnabled=true, nativeEvents=true, takesScreenshot=true,
platform=XP, browserName=chrome, javascriptEnabled=true,
version=27.0.1453.116, webStorageEnabled=true,
browserConnectionEnabled=false}]
Driver info: org.openqa.selenium.chrome.ChromeDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:41)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:515)
at
org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:191)
at
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:307)
at
org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:348)
at org.openqa.selenium.By$ById.findElement(By.java:216)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:299)
at com.ebay.tabletweb.test.tests.BATTests.main(BATTests.java:940)

Selenium version: 2.33.0
OS: Win2008Server
Browser: Chrome
Browser version: 27.0.1453.116 m




Attachments:
d7410017fd7d817fc91f1e25e1016e81.html 11.8 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

sele...@googlecode.com

unread,
Jul 3, 2013, 9:49:03 PM7/3/13
to selenium-develope...@googlegroups.com

Comment #1 on issue 5871 by shijunj...@gmail.com: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

revert chromedriver.exe to
http://chromedriver.googlecode.com/files/chromedriver_win_23.0.1240.0.zip
can resolve this problem

sele...@googlecode.com

unread,
Jul 4, 2013, 1:41:55 PM7/4/13
to selenium-develope...@googlegroups.com
Updates:
Labels: Component-WebDriver Browser-Chrome

Comment #2 on issue 5871 by a.u.savchuk: ChromeDriver fail to findElement
with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

(No comment was entered for this change.)

sele...@googlecode.com

unread,
Jul 16, 2013, 11:55:47 AM7/16/13
to selenium-develope...@googlegroups.com
Updates:
Status: Accepted
Cc: gden...@google.com

Comment #4 on issue 5871 by kka...@google.com: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

The problem is the reporter's script defines a concat function on
Object.prototype. It looks like wgxpath throws the error when it tries
to "wgxpath.FunctionCall.createFunc_('concat',". Greg, any ideas about how
to solve this?

This might affect other drivers too.

sele...@googlecode.com

unread,
Jul 16, 2013, 9:46:05 PM7/16/13
to selenium-develope...@googlegroups.com

Comment #5 on issue 5871 by lcoo...@kogan.com.au: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

Just here to say I'm getting the same error with the Python driver and
multiple versions of Chrome/Chromium and Chromedriver.

sele...@googlecode.com

unread,
Aug 29, 2013, 4:55:35 AM8/29/13
to selenium-develope...@googlegroups.com

Comment #6 on issue 5871 by sriramja...@gmail.com: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

Pls. let us know when can we expect fix for this. We are also facing the
same issue.
org.openqa.selenium.WebDriverException: unknown error: Function already
created: concat.

sele...@googlecode.com

unread,
Aug 30, 2013, 12:06:35 PM8/30/13
to selenium-develope...@googlegroups.com

Comment #7 on issue 5871 by steve.je...@wiggle.co.uk: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

Same problem for me. I'm pretty sure we haven't already defined any
functions called concat anywhere.
Selenium::WebDriver::Error::UnknownError: unknown error: Function already
created: concat.
(Session info: chrome=29.0.1547.62)
(Driver info: chromedriver=2.2,platform=Windows NT 6.1 SP1 x86_64)


This page:
https://groups.google.com/forum/#!msg/selenium-users/5rxng3IDjuA/cDM8bFn2lRMJ
seems to imply it's an issue with the latest Chromedriver, which would
explain it. My tests were running fine and I recently upgraded to the
latest Chromedriver and I'm now getting this error.

sele...@googlecode.com

unread,
Sep 13, 2013, 6:36:20 AM9/13/13
to selenium-develope...@googlegroups.com

Comment #8 on issue 5871 by steve.je...@wiggle.co.uk: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

The following code run in IRB will cause the error:
require 'watir-webdriver'
require 'webdriver-user-agent'
driver = UserAgent.driver(:browser => :chrome, :agent
=> :android_phone, :orientation => :landscape)
browser = Watir::Browser.new driver
browser.window.resize_to(500, 900)
browser.goto('https://www.sandbox.paypal.com/nvp/cgi-bin/webscr?cmd=_express-checkout&token=EC-82N89187TB867720T&useraction=commit#m')
puts browser.text

sele...@googlecode.com

unread,
Sep 13, 2013, 8:39:43 AM9/13/13
to selenium-develope...@googlegroups.com

Comment #9 on issue 5871 by steve.je...@wiggle.co.uk: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

Turns out there's an error in the HTML on the PayPal page,"Viewport
argument value "device-width;" for key "width" is invalid, and has been
ignored. Note that ';' is not a separator in viewport values. The list
should be comma-separated. " looks like this is causing WebDriver to fail.

sele...@googlecode.com

unread,
Sep 13, 2013, 8:56:27 AM9/13/13
to selenium-develope...@googlegroups.com

Comment #10 on issue 5871 by shijunj...@gmail.com: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

But it worked in the older version of chrome driver.

sele...@googlecode.com

unread,
Sep 13, 2013, 9:00:47 AM9/13/13
to selenium-develope...@googlegroups.com

Comment #11 on issue 5871 by steve.je...@wiggle.co.uk: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

can you see if the page it fails on for you has a similar issue? I'm not
saying webdriver shouldn't be fixed, but it could help you find a way
around it. Look at the developer console on the page where it's failing to
see if there are any errors.

sele...@googlecode.com

unread,
Sep 23, 2013, 4:07:01 PM9/23/13
to selenium-develope...@googlegroups.com

Comment #12 on issue 5871 by gden...@google.com: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

I just updated the wgxpath library with a fix for this [1]. The fix makes
the library robust to JS that modifies Object.prototype to add properties
which the library previously presumed did not not exist.

[1] https://code.google.com/p/wicked-good-xpath/source/detail?r=20

sele...@googlecode.com

unread,
Sep 24, 2013, 3:43:14 AM9/24/13
to selenium-develope...@googlegroups.com

Comment #13 on issue 5871 by steve.je...@wiggle.co.uk: ChromeDriver fail to
findElement with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

great, will that fix be in the next version of Chromedriver?

sele...@googlecode.com

unread,
Oct 20, 2013, 6:38:15 AM10/20/13
to selenium-develope...@googlegroups.com
Updates:
Status: Fixed
Labels: -Status-Untriaged

Comment #14 on issue 5871 by barancev: ChromeDriver fail to findElement
with Function already created:concat. error
http://code.google.com/p/selenium/issues/detail?id=5871

Please follow issue chromedriver#418 to be informed when the fix is released
Reply all
Reply to author
Forward
0 new messages