Skip to content

uc.click gives error: Invalid selector type: "<class 'seleniumbase.undetected.webelement.WebElement'>" Expecting a selector of type: "<class 'str'>" (string)! #2760

Answered by mdmintz
Vrackko asked this question in Q&A
Discussion options

You must be logged in to vote

The correct syntax is driver.uc_click(selector).
You must pass a selector, not a WebElement.
driver.find_elements returns a list of WebElements.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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