My application has a feature where in the user selects a piece on text by clicking and holding mouse on a a reader page, releasing the mouse later shows a menu to user where he select Highligh option. Text select is highlighted in this way. Can you please help on how to automate this using selenium(java)
我的应用程序有一个功能,用户通过在阅读器页面上单击并按住鼠标来选择文本片段,稍后释放鼠标会向用户显示一个菜单,用户可在其中选择Highligh选项。以这种方式突出显示文本选择。你能帮忙看看如何使用selenium(java)自动化它
1 个解决方案
#1
0
The selenium Actions class allows you to build complex interactions.
selenium Actions类允许您构建复杂的交互。
For example, you might do:
例如,您可能会这样做:
driver.clickAndHold().perform();
to simulate the user clicking (without releasing) the mouse at the current location.
模拟用户在当前位置单击(不释放)鼠标。
#1
0
The selenium Actions class allows you to build complex interactions.
selenium Actions类允许您构建复杂的交互。
For example, you might do:
例如,您可能会这样做:
driver.clickAndHold().perform();
to simulate the user clicking (without releasing) the mouse at the current location.
模拟用户在当前位置单击(不释放)鼠标。