Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let currentItemFocus;
- let jsonString;
- let hasMovedList= false;
- currentItemFocus = yield page.getFocusedNode();
- while (!hasMovedList) {
- if (hasMovedList=== true) break;
- yield page.keys().press(page.keys().RIGHT);
- currentItemFocus = yield page.getFocusedNode();
- console.log(logger.modify.background.yellow(` inside while loop item focus node is ${JSON.stringify(currentItemFocus)}`));
- hasMovedList= Object.values(currentItemFocus).includes(NAVIGATION_TO_LIST);
- console.log(logger.modify.background.yellow(` has moved watchlist button status is ${(hasMovedList)}`));
- moveNavigation++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement