1

So I am trying to input a value into a text box with selenium.

Let's say I define US_T as 2.02. Thus when I .send_keys('US_T') the result is "US_T" is inputted into the text box. I want "2.02" to be inputted and not "US_T".

Thanks!

1
  • have you tried removing the quotes? .send_keys(US_T) Commented Jul 8, 2019 at 14:52

1 Answer 1

1

You have to send the sendkeys as below when have the value in variable.

element.send_keys(US_T) # <== without double quotes as it's a variable
Sign up to request clarification or add additional context in comments.

1 Comment

Please accept the answer by clicking on the hallow check mark below the down vote button, if you feel the issue is resolved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.