selenium
selenium copied to clipboard
Issue in find_element_by_class_name()
When we use the function find_element_by_class_name('xyz') then it returns the value of the tags with class = "abc xyz" also. Facing problem because of this issue.
you need to be more specific with your selector. find_element_by_class_name will return any elements that have "xyz" as a class. it's the same thing as doing:
find_element_by_css_selector('*[class~="xyz"]')
consult the selenium users group for help. these issues are reserved for issues with selenium