Article Overview:
This article will cover how you can achieve the following:
How to execute horizontal scrolling in Virtuoso when native NLP commands are not available.
Problem Statement:
Virtuoso currently provides NLP support for vertical scrolling i.e. scroll to page top, bottom, etc.
However, we can try this approach to attain a horizontal scroll.
Solution:
Since Virtuoso does not natively support horizontal scrolling, the following approach can be used:
-
Use Key Bindings for Horizontal Scrolling:
- Utilize the Right Arrow (
→
) and Left Arrow (←
) key commands to perform horizontal scrolling. - Store a sequence of key commands in a variable (e.g.,
$Shift_Right
), which contains multiple Right key presses. - Example:
- Utilize the Right Arrow (
-
Implementing Key Binding for Scrolling:
$variable
is configured to trigger few sets of Right or Left key presses when a scroller is detected on the page.- The number of Left or Right key presses can be adjusted based on the scroll sensitivity required.
-
Fine-Tuning Scroll Sensitivity:
- Modify the number of Left or Right key presses stored in
$Variable
to control the scrolling distance. - The sensitivity can be increased or decreased based on how much scrolling is required.
- Modify the number of Left or Right key presses stored in
-
Mouse click before horizontal trigger:
- Clicking on the targeted section (Clicked the Horizontal scroller of the AUT) before executing
$Variable
improves accuracy.
- Clicking on the targeted section (Clicked the Horizontal scroller of the AUT) before executing
Example:
- Scenario: A user needs to scroll a horizontally overflowing table in an application.
- Solution: The user configures a
$Variable
containing a sequence of Right or Left key presses, which is triggered when the scroll bar is detected.
Comments
0 comments
Please sign in to leave a comment.