Article Overview:
This article will cover how you can solve the following issue:
How can you automate copying a link and opening it in a new browser tab using a workaround in Virtuoso, particularly when the "Copy Link" element is not behaving as expected during automation.
Problem Statement:
A user is attempting to automate the following steps on a web page using Virtuoso, but encounters an issue where the "Copy Link" element does not display as expected during automation:
- Mouse hover on "Allowed Values"
- Click on the "Copy Link" icon
- Assert the "Copy Link" confirmation pop-up (but unable to proceed from here)
- Open the copied link in a separate browser tab
Solution:
When the "Copy Link" functionality doesn't work as expected on a webpage or the confirmation pop-up isn't triggered, you can use the following workaround to copy the link manually and open it in a new browser tab:
Workaround Steps:
-
Look for the "Link Copied" text on the page:
- After clicking the "Copy Link" icon, you need to check if a "Link Copied" confirmation appears on the page. This message often appears when the link is copied successfully.
- Example NLP steps:
1. Click on button "Copy Link".
2. Look for element "Link Copied" on page
-
Simulate copying the link manually:
- Use any input text box to simulate pasting the copied link. In this case, we'll use the "Search" input field as an example.
- Press Ctrl + V to paste the copied link into the input field.
- Example NLP steps:
1. Click on "Search".
2. Press "ctrl_v".
-
Store the copied link:
- Now that the link is pasted into the input field, you can extract the value of the input field and store it in a variable.
- Example NLP steps:
1. Store Element text of "Search" in $CopiedLink
-
Navigate to the copied link in a new browser tab:
- Once the link is stored in the
copiedLink
variable, you can open it in a new tab. - Example NLP steps:
1. Navigate to $CopiedLink in new tab
- Once the link is stored in the
In case of any further queries, additions, or support please contact our Virtuoso Support Team.
Comments
0 comments
Please sign in to leave a comment.