How do I... Enter a TAB key press

Comments

2 comments

  • Avatar
    Matt Jackson

    posted Feb 4, 2011

     

    Hi,

    Don't know if you sorted this, but you can do it like this:

    field.sendKeys("\t");

    where field is a WebElement.

    Matt

  • Avatar
    Rajesh Chopra

    Mansi,

    It will would first check if they used \t as a the tab character. Do they just want to insert a tab or do they want to tab out of the field. Some more details on the use case will help. And we also need to know which web driver (selenium, sahi) they are using ? What version of Twist are they using ?

    Thanks.

    With Regards,
    Rajesh

Please sign in to leave a comment.