I am trying the below; it is failing with error 'Message: element not intractable
'. Presumably because Python is trying to fire them both at the same time.
The first one works. But, the second one is failing. I just tried using sleep
in between and the implicity_wait
below. The scenerio is one modal dialog box after another. Click first 'button', second modal shows (basically a confirm screen) > won't click that button.
self.driver.find_element_by_css_selector("#publishButton").click()
self.driver.implicitly_wait(4)
self.driver.find_element_by_css_selector(".btn-primary").click()
Here is the mark-up; of the second button I am trying to access.
<button class="btn btn-mini btn-primary" ng-click="save();">Save As Pending</button>