I am trying to click a button using Firefox - python - webdriver
But every time error comes:
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: .pull-right show-toggle with-icon
Am I missing something here? after login and couple of steps I am reaching on one page where I need to click on the button with below class name.
child = driver.find_element_by_class_name('pull-right show-toggle with-icon')
child.click()
Any other way of doing this ?
InvalidSelectorExceptionas searchby_class_namedoesn't support compound class names... Update your code with original selector. Also check whether your button located inside aniframedriver.find_element_by_class_name('pull-right show-toggle with-icon')should triggerInvalidSelectorException, but notNoSuchElementException... Also there is only littleHTMLsample on provided image. Are you sure that there is noiframe?