Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. let currentItemFocus;
  2. let jsonString;
  3. let hasMovedList= false;
  4.  
  5. currentItemFocus = yield page.getFocusedNode();
  6. while (!hasMovedList) {
  7. if (hasMovedList=== true) break;
  8. yield page.keys().press(page.keys().RIGHT);
  9. currentItemFocus = yield page.getFocusedNode();
  10. console.log(logger.modify.background.yellow(` inside while loop item focus node is ${JSON.stringify(currentItemFocus)}`));
  11.  
  12. hasMovedList= Object.values(currentItemFocus).includes(NAVIGATION_TO_LIST);
  13. console.log(logger.modify.background.yellow(` has moved watchlist button status is ${(hasMovedList)}`));
  14.  
  15.  
  16. moveNavigation++;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement