Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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".
.send_keys('US_T')
Thanks!
.send_keys(US_T)
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
Add a comment
Required, but never shown
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.
Explore related questions
See similar questions with these tags.
.send_keys(US_T)