Results 1 to 6 of 6

Thread: How to "type" shift+tab in WebDriver test

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium User
    Join Date
    Oct 2014
    Posts
    17
    Answers
    1

    Default Answered: How to "type" shift+tab in WebDriver test

    How do I send a Shift-tab to the browser in a WebDriver test.
    I've tried various things along these lines

    Code:
    ST.element('//body').type({key:'ShiftTab'});
    
    ST.element('//body').type({key:'Tab', shiftKey: true});
    
    ST.element('//body').type({key:{name:'Tab', shiftKey: true}});
    Any help would be appreciated.

  2. For some reason the ST.play key events are not being recognized still in our app. (or at least not that I can tell by debugging the tests.) This example didn't activate our shift-tab function.

    However, it got me thinking and I tried this, which did work, interestingly enough.


    Code:
    ST.element('//body').type({key: [ 'Shift','Tab']})

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •