Find children - filter

I have used Find Children to extract a list of items. From the result below, I need to get only the ones with tag=‘INPUT’. What do I need to pass in as filter? To get the result below, the filter is set to < webctrl />

Result
UiElement[312] 
{
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X32More' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='ext-gen-detail-1-12' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X32TableResults' tag='TABLE' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl parentid='X32TableResults' tag='COLGROUP' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl parentid='X32TableResults' tag='COL' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl name='Table23' tag='TBODY' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X32TableResults' tag='TABLE' /><webctrl id='dtlr_X32_1' tag='TR' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X32TableResults' tag='TABLE' /><webctrl parentid='dtlr_X32_1' tag='TD' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl idx='1' parentid='dtlr_X32_1' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl css-selector='body&gt;div&gt;div&gt;form&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;div&gt;div' parentid='dtlr_X32_1' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_1Hidden' tag='INPUT' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_1Border' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_1Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl idx='1' parentid='X34_1Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl css-selector='body&gt;div&gt;div&gt;form&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div' idx='1' parentid='X34_1Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_1' tag='INPUT' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl css-selector='body&gt;div&gt;div&gt;form&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div' idx='2' parentid='X34_1Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_1Readonly' tag='INPUT' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_1Reference' tag='INPUT' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl css-selector='body&gt;div&gt;div&gt;form&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;div&gt;div&gt;div&gt;div&gt;div' idx='2' parentid='X34_1Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_1Third' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl parentid='X34_1Third' tag='INPUT' type='button' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_1FindButton' tag='IMG' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl parentid='dtlr_X32_1' tag='SCRIPT' type='text/javascript' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X32TableResults' tag='TABLE' /><webctrl id='dtlr_X32_2' tag='TR' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X32TableResults' tag='TABLE' /><webctrl parentid='dtlr_X32_2' tag='TD' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl idx='1' parentid='dtlr_X32_2' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl css-selector='body&gt;div&gt;div&gt;form&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;div&gt;div' parentid='dtlr_X32_2' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_2Hidden' tag='INPUT' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_2Border' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_2Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl idx='1' parentid='X34_2Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl css-selector='body&gt;div&gt;div&gt;form&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div' idx='1' parentid='X34_2Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_2' tag='INPUT' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl css-selector='body&gt;div&gt;div&gt;form&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div' idx='2' parentid='X34_2Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_2Readonly' tag='INPUT' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_2Reference' tag='INPUT' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl css-selector='body&gt;div&gt;div&gt;form&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;div&gt;div&gt;div&gt;div&gt;div' idx='2' parentid='X34_2Edit' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_2Third' tag='DIV' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl parentid='X34_2Third' tag='INPUT' type='button' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X34_2FindButton' tag='IMG' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl parentid='dtlr_X32_2' tag='SCRIPT' type='text/javascript' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X32TableResults' tag='TABLE' /><webctrl id='dtlr_X32_3' tag='TR' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl id='X32TableResults' tag='TABLE' /><webctrl parentid='dtlr_X32_3' tag='TD' />" 
  },
  UiElement 
  {
    ClippingRegion=null,
    Selector="<html app='chrome.exe' title='Synergia SMT 4.6.0' /><webctrl id='ext-comp-187881' tag='IFRAME' /><webctrl idx='1' parentid='dtlr_X32_3' tag='DIV' />" 
  },
  ...

set filter like this,
<webctrl tag='INPUT'/>

1 Like

Great, this works! Can we use also partial selectors in the filter, like < webctrl tag=‘INPUT’ id=‘X34_*Readonly’> or other way to eliminate the ones that are marked as hidden?

I think it will work, try and check.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.