I know it’s a pretty basic question, but I have a hard time to make scroll down / up in a webpage work. I tried different approaches but nothing worked so far. For example: xmousewheel
I mostly use XType | ${KEY_PGDN}
to scroll down a page. Or, if you need to the the very end of the, then I use XType | ${KEY_END}
xMouseWheel can be a little bit tricky.
- You must make sure the website to use it stays focused forground otherwise xMouseWheel does not know where to scroll.
- I had to play with the parameter and finally got it worked when used a target value of 700. I’m not sure what this number means, maybe pixel.
- I had to put this xMouseWheel into a loop to scroll all to the end of the page. Part of my code looks like this:
{
“Command”: “do”,
“Target”: “”,
“Value”: “/-- WHILE I CAN LOAD NEW MENU VALUES –\”,
“Description”: “”
},
…
{
“Command”: “XMouseWheel”,
“Target”: “700”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “pause”,
“Target”: “100”,
“Value”: “”,
“Description”: “”
},
…
{
“Command”: “repeatIf”,
“Target”: “…”,
“Value”: “\– WHILE I CAN LOAD NEW MENU VALUES --/”,
“Description”: “Stops if we got to the end of the dropdown menu”
}