I would like to get the title attribute from the span class = g47SY lOXF2 but I can't find the correct css path.
Here is what I tried:
Number = self.browser.find_element_by_css_selector('ul li a span').get_attribute('title')
but it does not work.
Here is the HTML:

To print the value of the title attribute i.e 251 you need to induce WebDriverWait for the
visibility_of_element_located()and you can use either of the following Locator Strategies:Using
CSS_SELECTOR:Using
XPATH:Note : You have to add the following imports :