I would like to select elements by the class name, but only with a specific name(first-level-li), if there are other classes with the name that I am trying to select but followed for other names
(<li class="first-level-li no-second-level shop-link">
<li class="first-level-li no-second-level ">)
, I need to ignore them, how can I do this? Example:
firstLevelMenu = self.driver.find_elements_by_class_name ( "first-level-li" )
website
<li class="first-level-li no-second-level shop-link">
<li class="first-level-li no-second-level ">
<li class="first-level-li ">