Skip to content

sb.type(),Cannot input to div,In an element that is not a text type #2703

Answered by mdmintz
luckyboy-wei asked this question in Q&A
Discussion options

You must be logged in to vote

sb.type(selector, text) only works on input fields. (Same with regular Selenium's send_keys() method.)

You could try using other methods though, like sb.js_type(selector, text) or sb.set_text_content(selector, text). Maybe even raw JS if those don't work for you.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@luckyboy-wei
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants