Skip to content

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

@mdmintz

Description

@mdmintz

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()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions