ericmckean / chromedriver

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

ChromeDriver: WebElement.send_keys() ignores left curly bracket ({) #579

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
- ChromeDriver 26.0.1383
- Selenium standalone 2.35
- Firefox 21
- Chrome 30.0.1599.101m
- Windows Server 2008 R2 Standard

Using the Python API with the following logic, assuming "browser" is my 
WebDriver object:

my_input = browser.find_element_by_xpath("\\somexpath")
my_input.send_keys("aaa{{aaa")

In the browser, Selenium types "aaaaaa" with Chrome. With Firefox, the output 
is correct.

If I do this:

my_input.send_keys("aaa{{aaa}}}")

In the browser, Selenium types "aaaaaa}}}", with Chrome. Everything is still OK 
with Firefox.

The obvious conclusion is that there is a bug with ChromeDriver.

I am unable to test with older versions of ChromeDriver at this time, but I 
know that switching back to Selenium 2.33 did not help.

FYI, the context of this is an app configuration window where we basically dump 
settings in JSON format in a textarea.

Can anyone reproduce this bug?

Thanks!

Original issue reported on code.google.com by asca...@gmail.com on 18 Oct 2013 at 2:28

GoogleCodeExporter commented 9 years ago
I had not seen that there was a Selenium 2.36.

I've updated my server and I still have the issue.

Original comment by asca...@gmail.com on 18 Oct 2013 at 2:39

GoogleCodeExporter commented 9 years ago
Since it is apparent it's a problem with ChromeDriver, you will get more luck 
posting over there:

http://code.google.com/p/chromedriver/

Original comment by arran.hu...@gmail.com on 18 Oct 2013 at 2:47

GoogleCodeExporter commented 9 years ago
Oh right. I'm always struggling with who does what and where is what (third 
base?) when it comes to Selenium and its drivers.

Sorry about polluting here.

Original comment by asca...@gmail.com on 18 Oct 2013 at 2:53

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago

I am not to reproduce the issue. Please find the below code:-

import time
from selenium import webdriver

browser = webdriver.Chrome()
browser.get('http://www.google.fr')

elem = browser.find_element_by_name('q')
elem.send_keys("aaa{{aaa")
time.sleep(3)
elem.clear()
elem.send_keys("aaa{{aaa}}}")

time.sleep(5)
browser.quit()

Configuration:- Windows 8.1, Python 2.7 , selenium webdriver 2.45 , 
chromedriver 2.14 , chromebrowser-41.0.2272.76 (64-bit)

Can you please try with the latest versions and let us know if you still see 
the issue?

Original comment by gmanikp...@chromium.org on 23 Mar 2015 at 9:41

GoogleCodeExporter commented 9 years ago

Original comment by gmanikp...@chromium.org on 31 Mar 2015 at 9:46