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
-
sb.type('//div[@data-mode-id="sql"]','select * from t_transfer') Unable to enter |
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Apr 18, 2024
Replies: 1 comment 2 replies
-
You could try using other methods though, like |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sb.type(selector, text)
only works oninput
fields. (Same with regular Selenium'ssend_keys()
method.)You could try using other methods though, like
sb.js_type(selector, text)
orsb.set_text_content(selector, text)
. Maybe even raw JS if those don't work for you.