dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

Feature request: Focus action #129

Closed burt202 closed 9 years ago

burt202 commented 10 years ago

Hi,

Hopefully I'm not being blind, but i couldnt see an action that focuses on an element. Yes I know i can achieve the same thing with click but I think focus would help describe tests steps in a more semantic way. What do you think?

Cheers

asciidisco commented 9 years ago

Hey,

that is a tricky thing, I see your point, but Dalek tries to simulate a user (with all its limitations), so the only way I see of focusing a field without clicking on it, would be using Tabs to navigate to it via keyboard (which is possible using the sendKeys() method).

I do not want to violate this approach, I hope you understand :)

burt202 commented 9 years ago

I totally understand. Using click is fine for what I need anyway so I'm not blocked. Thanks for your response