Skip to content

3.3.6 - Add a shortcut for cycling through elements with the "tab" key and then clicking the active element

Compare
Choose a tag to compare
@mdmintz mdmintz released this 03 Jul 19:57
· 2787 commits to master since this release
0d7e9bd

Add a shortcut for cycling through elements with the "tab" key and then clicking the active element

Eg. self.send_keys("html", "\t\t\t\t\n")

This assumes that selector is html , and that the text is a series of tabs (zero or more \t) followed by one \n at the end of the string.

Examples:

self.send_keys("html", "\t\t\t\t\n")
self.send_keys("html", "\t\n")
self.send_keys("html", "\n")

Another way of clicking the active element right now is by calling:

self.click_active_element()