1# you can see https://www.w3schools.com/cssref/css_selectors.asp
2# or https://stackoverflow.com/questions/21713280/find-div-element-by-multiple-class-names
3
4# 1- <div class="value test"></div>
5# 2- <div class="value test "></div>
6# 3- <div class="first value test last"></div>
7# 4- <div class="test value"></div>
8
9# divs that their class is equal to 'value test' absolutely.
10driver.find_elements_by_css_selector("div[class='value test']") # --> [1]
11
12# divs that their class includes 'value test'.
13driver.find_elements_by_css_selector("div[class*='value test']") # --> [1, 2, 3]
14
15# divs that their class includes 'value' and 'test' also.
16driver.find_elements_by_css_selector("div.value.test") # --> [1, 2, 3, 4]