find element by css selector selenium python
# you can see https://www.w3schools.com/cssref/css_selectors.asp
# or https://stackoverflow.com/questions/21713280/find-div-element-by-multiple-class-names
# 1- <div class="value test"></div>
# 2- <div class="value test "></div>
# 3- <div class="first value test last"></div>
# 4- <div class="test value"></div>
# divs that their class is equal to 'value test' absolutely.
driver.find_elements_by_css_selector("div[class='value test']") # --> [1]
# divs that their class includes 'value test'.
driver.find_elements_by_css_selector("div[class*='value test']") # --> [1, 2, 3]
# divs that their class includes 'value' and 'test' also.
driver.find_elements_by_css_selector("div.value.test") # --> [1, 2, 3, 4]