Results 1 to 2 of 2

Thread: Script focusing moving away

  1. #1
    Sencha User
    Join Date
    May 2017
    Posts
    20

    Default Script focusing moving away

    Hi,


    While running a script to double click a grid row, the focus of ST is seen to move away to the top left corner of the web page and gets stuck there. As a result of this, all subsequent lines of the script fail.


    Following code (derived from ST rcorder) was used:
    ST.play([
    { type: "dblclick", target: "#gridId => [data-recordindex="0"]", detail: 2 },
    ]);


    Is there any way to prevent this from happening?


    The grid object is accessible using the following code:
    Ext.ComponentQuery.query('#gridId')[0]

    Regards
    Ramesh

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi Ramesh--

    Do you have an example of this behavior that we can reproduce? For example, one of the examples from the kitchensink that demonstrates the same issue? Also, what kind of scenario is this for? In-browser, or WebDriver?

    Thanks!
    Joel

Similar Threads

  1. Separate ExtJS script from Application Script
    By aldrich in forum Sencha Cmd
    Replies: 1
    Last Post: 28 Jul 2015, 9:46 AM
  2. Replies: 5
    Last Post: 11 Jul 2012, 10:25 AM
  3. Replies: 5
    Last Post: 27 Mar 2012, 4:17 AM
  4. Focusing/Moving current view to an element on the page...
    By orinacko in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 18 Nov 2011, 3:34 PM

Posting Permissions

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