QuestionQ3

UI automation

Which selector should be modified, in accordance with best practices, to ensure dependable and stable automation?

  • A <html app='chrome.exe' title='Release History - UiPath Platform' /><webctrl parentid='confluence-ui' tag='SPAN' idx='94' />
  • B <html app='chrome.exe' title='Google' /><webctrl tag='INPUT' aaname='Search' />
  • C <html app='chrome.exe' title='ACME System 1 - Download monthly Report' /><webctrl aaname=' Year 200?' parentid='searchForm' class='text' />
  • D <html app='chrome.exe' title='World population - Wikipedia' /><webctrl aaname='Population by continent' tag='TABLE'/><webctrl tableCol='3' tableRow='7' tag='TD'/>
Explanation

A selector with a large idx value is fragile because idx identifies an element by its position in the UI hierarchy, and that position can change. UiPath recommends avoiding idx unless the value is very small, and instead using stable, meaningful attributes.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!