How to Trigger Tab key in Selenium

Key Press and Fire Event
Imagine that if you have a function in your application that can be invoke by pressing the "Tab" key. Eg. Auto Login check availability. We can use keyPress with ASCII value for the key which you want to trigger the function.
Eg.
Command
Target
Value
keyPress
Txt_Login
\9
here "\9" is ascii value of horizontal tab.
Some functions may used Onblur. It will trigger the function when the field lose the key focus. here we can use fireEvent with "blur" or "focus" command as follows:
Command
Target
Value
fireEvent
Txt_Login
blur

31 comments:

  1. I can get keyPress to work with TAB. Is is supposed to load some data using Ajax but it doesn't.

    Any help?

    ReplyDelete
    Replies
    1. Hey BeRniTo

      Have solve the problem.please how to do

      Delete
  2. If not find solution yet, try using typekeys command.

    ReplyDelete
  3. fireEvent + blur did the magic in my case, thanks

    ReplyDelete
  4. Excellent, fireEvent + blur for me when I couldn't TAB out of a dropdown menu to update the page. Good job Vijay

    ReplyDelete
  5. fireEvent + blur worked for me as well

    Thanks a ton

    ReplyDelete
  6. Txt_login is not work in my case . What value i have to select for Target.

    ReplyDelete
  7. fireEvent + blur ... Rocks

    Thanks

    ReplyDelete
  8. Thanks for sharing, valuable info!

    ReplyDelete
  9. Thanks alot, this is really helpfull

    ReplyDelete
  10. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium

    ReplyDelete
  11. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium.
    Selenium

    ReplyDelete
  12. Advanced Selenium Framework Training in Chennai by Vishwa

    Hi, Reach Mr.Vishwa for Best Selenium and Coded UI Training in Chennai with real time project assistance. This people will teach everything from the basics up to advanced level scenarios from frameworks.

    I learned from Mr.Vishwa and Raj they are very good automation people for Selenium Frameworks. After joined with them I learned many things and now I am writing automation scripts in own project. Vishwa 9003085882
    selenium training in chennai

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. Looking for best training in SELENIUM, take a glance at http://thecreatingexperts.com/selenium-training-in-chennai/

    ReplyDelete
  15. Thanks for sharing great information in your blog.

    Selenium training institute which provides Real Time Hands on Training…THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/


    contact-8122241286

    ReplyDelete
  16. Thanks for sharing this blog.Creating Experts provides Best training in selenium

    http://thecreatingexperts.com/selenium-training-in-chennai/

    contact 8122241286

    ReplyDelete
  17. THE CREATING EXPERTS is one of the leading training provider in SELENIUM they provide hands on training with real time scenario

    http://thecreatingexperts.com/selenium-training-in-chennai/

    contact +91-08122241286

    ReplyDelete
  18. The Creating Experts provides training in SELENIUM

    They provide hands on training with real time scenarios

    http://thecreatingexperts.com/selenium-training-in-chennai/

    contact +91-08122241286

    ReplyDelete
  19. Nice blog...

    Selenium training institute which provides Real Time Hands on Training…THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/


    contact-8122241286

    ReplyDelete
  20. SELENIUM training in Chennai

    http://thecreatingexperts.com/selenium-training-in-chennai/

    SELENIUM training in Chennai by THE CREATING EXPERTS ,

    They provide you hands on training with real time scenarios

    contact 8122241286

    ReplyDelete
  21. Hi, all nice blog for a long time i was searching for a real time trainer and landed with my trainer in selenium
    SELENIUM training is provided by THE CREATING EXPERTS in CHENNAI

    http://thecreatingexperts.com/selenium-training-in-chennai/

    Contact 8122241286 for more info

    ReplyDelete
  22. Nice blog...

    Selenium training institute which provides Real Time Hands on Training…THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/


    contact-8122241286

    ReplyDelete
  23. NICE BLOG...Selenium training in CHENNAI provided by THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/

    CONTACT 8122241286.

    ReplyDelete
  24. Very Nice...Contains A to Z concepts...Thanks a lot.. and looking for the best selenium training in Chennai with certification from us. we have experienced selenium experts offer selenium course training with industry exposure. Check Here https://goo.gl/VRNEXv

    ReplyDelete