So am trying to figure out how to get the right cssSelector to access an html element from Python web driver for selenium.
I have a page where two drop down option are there. I want to select the one which shows "Fast Mode" and then select the second option in that drop down using Python web driver.
A similar drop down on left also has similar element
<a class="btn-pill dropdown-toggle active" href="#" data-dialog-id="dialog-view28363"> <i class="message-indicator icon-info-circle" style=""></i> Job<span class="caret"></span> </a>
How do I find the right cssSelector as class names appear same.
There is a data-dialog-id which seems to have diff values but am not sure which method in web driver can help me use that.
My code to access elements as follows:
driver = webdriver.Chrome()
toggle_button=driver.find_element_by_css_selector('a[data-dialog-id="]')
toggle_button.click()