Twitter bootstrap modal buttons not working when clicked in Selenium
I managed to come up with a solution to this, only by sheer luck though. Basically before I click on the Cancel or Create links I was interacting with some tagit inputs and had to do some fiddling to get them to work.
These tagits were in one div (html/body/div[3]/div[2]
) within the modal and the links were in another (html/body/div[3]/div[3]
) and this fiddling around seemed to have stopped Selenium from seeing the other div somehow, although I'm not sure how.
To fix the issue I simply added in a click of the modal at the top level (html/body/div[3]
) and then it found the lower level links fine! How this fixes it I don't know but at least my scripts work fine again now...