How can I use javascript to click a button that has no id, value, class or name?
The relevant code for the button is:
<div class=classname anotherclassname title=>
<div>
<button type=submit><i class=anotherclass anotherclassname></i>ImAButton</button>
</div>
</div>
I'd give an example of what I have so far, as I know that is simply good etiquette here on stackoverflow, but I don't even know where to start. The only way I presently know how to use javascript to click a button is using this:
document.getElementById(myButtonId).click();
And that doesn't apply here.