Hi ElSticky,
I think the reason you left out the element[@controlname='tabInfo_TabPage_000'] is because there will be other open panes, am I right?
Try not to leave out the whole element, rather try to make the xpath look for the visible tabpage, and use regexp to search for the proper tabs.
Try to use this xpath:
Code: Select all
/form[@controlname='frmPTUser']/container[@controlname='toolStripContainer1']//element[@controlname~'tabInfo_TabPage' and @visible='True']/combobox[@controlname='cboDefineCustomer']/text[@controlid='1001']
Another option is to leave out the whole ? part:
Code: Select all
/form[@controlname='frmPTUser']/container[@controlname='toolStripContainer1']//combobox[@controlname='cboDefineCustomer']/text[@controlid='1001']
Or even to leave out the @controlname attribute:
Code: Select all
/form[@controlname='frmPTUser']/container[@controlname='toolStripContainer1']//element/combobox[@controlname='cboDefineCustomer']/text[@controlid='1001']