Knowledge Base Article

> Knowledge Base > Rapise > Rapise Web

Created By  dmarkovtsev Tuesday, July 24, 2018

Sometimes an element on a web page may be invisible because it is out of a viewport.  Real user scrolls a page vertically and horizontally to reach such an element. How to achieve same behavior with Rapise?

Each web object in Rapise has DoEnsureVisible action.

The name of the action is self explanatory. It forces a browser to scroll the viewport in a way to make the element visible.

Note that Rapise automatically executes this action before performing DoClick and DoDblClick actions.

Rapise relies on a browser to perform scrolling. It always works if application developers use native scrollbars. But sometimes scrollbars (most probably horizontal) are custom elements implemented in a web framework used by the application. In this case learn the scrollbar element and use DoClick action with offset to click it to perform scrolling. Use DoGetRect action to check that position of the element after scrolling satisfies your needs.

 

Attachments

Selected files will be attached to any email sent on saving ticket.

file selected files selected  () Delete Selected

  • Created:
  • by:

Select files to upload

Or drag and drop files here

Uploading …
Done!
Upload More?
There was an error.
Try again?

Save to upload the selected file(s)

Article Info
  • Last Updated: 7/24/2018
  • Article ID: KB364
  • Views: 253