Mohit Yadav
Mohit Yadav

Reputation: 44

How to press TAB or ENTER key after inserting an input in ROBOT Framework

How do i press TAB key or ENTER key when i enter input text. The action that i wish to do is

  1. In the system , there is input field. when a user enters data as input text in that field and press TAB (when i enter input text the system gives suggestions of the name ... )The way i'm doing is
Input Text    xpath://input[@id='token-input-for_user']    test
Press Key    xpath://input[@id='token-input-for_user']    TAB

the above solution does not work as after entering input text it again clicks again on the same field.

Upvotes: 0

Views: 4027

Answers (1)

pavelsaman
pavelsaman

Reputation: 8322

This might work:

Press Keys    //input[@id='token-input-for_user']    test+TAB

Upvotes: 2

Related Questions