hie .
i am automating a web page and i want to scroll down to the page end and maximize screen on the server in that automation . send hotkey doesnt seem to be working on server . kindly give permanent solution which works on studio as well as server .
Hello @Pooja_Kanwar,
Use Maximize Window (or Resize Window = Maximize) and Execute JavaScript window.scrollTo(0, document.body.scrollHeight); (or Scroll → ToEnd) instead of Send Hotkey, as these work in both Studio and server by interacting with the browser DOM.
i have only inject javascript activity and not execute javascript . i can not upgrade any of my package for this as my entire program is getting affected. kindly give the best solution . this is the activity what i am getting .
Follow these steps:-
- Use Browser → target the Edge page.
- Maximize Window → inside the Use Browser scope.
- Inject JavaScrip →
window.scrollTo(0, document.body.scrollHeight);
- Continue your automation after the page is fully loaded and scrolled.
in inject js i am getting error is this is not supported by this element . how to rectify that ?
Have you tried mouse scroll activity and set property Scroll type - To element select an UI element at the bottom of the page
this seems to be perfectly working in my local . will it work in studio too ?
As @ashokkarale suggested, you can use Scroll Type – To Element to select a UI element instead of using Send Hotkey.
Yes, it works.
also can you suggest me something for maximize screen also which will work both in my studio and server ?
will it work in server as well ?
Yes, @Pooja_Kanwar. It will.
i am getting this restore popup and i want click on that x button so that it vanishes . how can do that so that it will work both in studio and server ?
For this I would suggest to disable this popup instead of handling it every time.
Follow this thread
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.


