I want to select text on a page using Katalon. By “select text” I mean what occurs when you hold down the left mouse button before some text, then move the cursor over that text. This is the action one takes before cutting/copying some text, for example. In the application I am testing, a custom context menu appears when text is selected in this way. I need to test the functionality of this context menu, so I need a way to select some text on the page to get the menu to appear. I’m looking for a generic way to select text on the page, not specific to the application I am testing.
Update: The elements I need to select text within are paragraph and span elements.