Closed sirEgghead closed 5 days ago
input[data-test-name="Submit Vote"]
should work as the selector.
If that element is inside an iframe, you'll need to switch into the iframe first:
sb.switch_to_frame(selector)
@mdmintz thank you for the comment. However, I did not quite get your suggestion to resolve the issue.
I tried sb.highlight('input[data-test-name="Submit Vote]')
and sb.highlight('input:[data-test-name="Submit Vote]')
. I grepped the source to ensure that there is no iframe.
Scratch that. I changed sb.highlight
to sb.click
. All good. Thanks a million @mdmintz!
In sb.highlight
, your selectors were either missing a closing double quote, or you added a :
where it shouldn't belong.
@mdmintz /facepalm. No excuse. Thank you <3
Thumbs up on your YouTube, by the way!
The element that I'm trying to click/highlight is the "SUBMIT VOTE" input. CF passes without issue.
I've tried a few different ways of locating the element, as seen by the commented lines. This is my first time using SB. Trying to figure this out.
Console errors with
Element {input:contains("submit")} was not present after 7 seconds!
Thanks in advance!