I am trying to get input using Python and Selenium, but it is showing me an error. How can I solve this error?
inputElement.send_keys(getStock.getStocklFunc()[0])
Error
inputElement = driver.find_element(by=By.CLASS_NAME, value='su-input-group')
NameError: name 'By' is not defined. Did you mean: 'py'?
I have tried with this line too, but it is showing a deprecation error:
find_element_by_tag_name
find_element_by_*
andfind_elements_by_*
are removed in Selenium 4.3.0. Usefind_element
instead.". – Bimah