Closed ayushbits closed 7 years ago
Answer is
await mainTab.goTo('https://github.com/LucianoGanga/simple-headless-chrome')
await mainTab.wait(2000)
await mainTab.keyboardEvent('keyUp', 'End',0,35)
await mainTab.keyboardEvent('keyDown', 'End',0,35)
I am trying to load a page and go to the End of the page using following code :
But it is not working . I have seen documentation in the code , Input.dispatchKeyEvent of chrome-devtools. However, none of them is working. Could somebody help ?