I can't seem to find an answer for this on the net.
Here's a snippet of html code:
<td>
<div class="low-fare-day active"></div>
<div class="low-prices"></div>
</td>
<td>
<div class="low-fare-day"></div>
<div class="low-prices1"></div>
</td>
Below is my code:
I want to find the two classes low-fare-day and low-fare-day.active using css_selector, but couldn't get it working. Can anyone solve this puzzle for me?
fromdata = driver.find_elements_by_css_selector('div.low-fare-day','div.low-fare-day.active')
or
fromdata = driver.find_elements_by_css_selector('div.low-fare-day' | 'div.low-fare-day.active')
div.low-fare-day.activeshould work as the selector.