UiPath RPA Associate (UiRPA) — Question 58
A developer created an automation which scrapes data from PDF reports. The reports have the same structure and the title format is always “Report X - PDF”, where X is a number from 1 to 100. Only one report wil be open at a time but other PDF files may be open on the desktop.
What is the recommended method to ensure the selector identifies the correct PDF to use?
Answer options
- A. Use the ? wildcard character in place of the idx attrbute value
- B. Use the * wildcard character in place of the “X” in the title attribute value
- C. Use the * wildcard character in place of the title attribute value
- D. Use the idx attribute value in the selector to increment for each file
Correct answer: B
Explanation
The correct answer is B because using the * wildcard in place of the “X” allows for matching any number in the title, ensuring the correct report is selected. Option A is incorrect as the ? wildcard does not apply to the idx attribute value. Option C incorrectly suggests using a wildcard for the entire title, which would not guarantee the selection of the specific report format. Option D is also not suitable as incrementing the idx value does not help in identifying the correct report title format.