I am having problems getting data from a element using Selenium with the line:
bets = driver.find_elements_by_class_name('sgl-ParticipantFixtureLink gl-Market_General-cn1 ')
I can get the data by using XPath, but getting all the values since they have the same class name would be more efficient.
Since I am pretty new to HTML, Python, JavaScript etc, I was wondering if need to change the class name, using:
"_" or "-"
to fill up the blank spaces in the class name?
bets = driver.find_elements_by_class_name('sgl-ParticipantFixtureLink-gl-Market_General-cn1-')
or
bets = driver.find_elements_by_class_name('sgl-ParticipantFixtureLink_gl-Market_General-cn1_')
It does not seem to return any value, but neither does it return null.
classattribute, that means it has multiple classes.