Python – To send threekeys using send_keys() in selenium python webdriver

pythonseleniumwebdriver

I am trying to type a float number into a textbox with default value 0.00.But it tries to get appended instead of overwriting it.I tried with .clear() and then send_keys('123.00') but still it gets appended.
Then i tried with send_keys(Keys.CONTROL+'a','123.00').It updates 0.00 only.

Any help is really appreciated.

For more info ..
URL : http://new.ossmoketest.appspot.com
userid: senthil.arumugam@mycompanyname.com — mycompanyname = orangescape (sorry to avoid spam mails)
password not needed now.
click purchaseorder… in the form please new product and new price… sample application for automation.. thanks

Best Solution

I've had good results with:

from selenium.webdriver.common.keys import Keys

element.send_keys(Keys.CONTROL, 'a')
element.send_keys('123.00')

If that doesn't work it may have something to do with the code in the web page.