Closed cdchris12 closed 1 month ago
Duplicate of https://github.com/seleniumbase/SeleniumBase/discussions/2229#discussioncomment-7658873
element.uc_click()
already exists when using UC Mode:
It's not recommended though, because using it can lead to ElementClickInterceptedException
or StaleElementReferenceException
, which is prevented by using a regular CSS Selector that's fed into a JavaScript call for the UC click functionality of the regular driver.uc_click(selector)
method.
As a user of SeleniumBase, I would like the
uc.click()
function to accept not only xpaths and css selectors, but also WebElement objects as well. This functionality would simplify coding by not needing to reference the location of an element twice, especially in cases where an element's location needs to be searched for or obtained via another function.