The following code gets the span
, but if it has a img
it has an error.
user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(names))
user.click()
My system takes title
from span
and clicks it.
But when title
is followed by text and img
I do not know what to do.