Click Activity erroneously shows the original selector name text in the trace log message.
Steps to reproduce:
- Create a Click Event on a Java Toggle Button
- Change targeting methods to Strict (Anchor and Selector).
- Delete any content in the Fuzzy selector fields.
- Run a quick debug to make sure it all works.
- Leave the Anchor alone, but change the selector, to use name=‘*’ instead of actual text.
- Select a different value for the actual target selector.
- Run the debug again.
The Trace Log will show the original text value that originally set in the java name attribute.
Change the target selector to include something like the following:
<java name=‘*’ role=‘toggle button’ idx=‘2’ / >
I don’t think the trace log should show unrelated targeting text that no longer appears anywhere in the workflow selectors.
Additional Info:
C# workflow
Java Application
Robot Logging: Log target & anchor search steps: true
The Message I see:
05/20/2022 16:01:33 Click 'Watchlist Caption'
Searching for target ''60.00.00 Global X S…'' [Role: Button] with the following methods: selector.
Searching for anchor ''Watchlist'' [Role: Button] with the following methods: selector.
The related Click Activity’s target Selector:
<java name=‘*’ role=‘toggle button’ idx=‘2’ / >
The Selector’s actual text value content:
06.11.01 Mad$ …