how to recognize input or text?
Posted: 23 Jul 2022, 08:30
Let's say you have a screen like this:
and you identify the input field as input01, and the text field as txt02.
but sometimes when you get to this screen, txt02 happens to be an input field.
so I want to be able to know from the script in aXes if it is an output text, or an input field.
checking in the developer tools, I can see that this is the code associated with this two fields:
the input field is inside a div that starts with ifldxxx and the text file is inside a div that start with txtxxx.
Can I read that name from the script in aXes?
I have tried a silly
but getProperty do not get me that close. maybe need to indicate some sort of parent. Any ideas?
and you identify the input field as input01, and the text field as txt02.
but sometimes when you get to this screen, txt02 happens to be an input field.
so I want to be able to know from the script in aXes if it is an output text, or an input field.
checking in the developer tools, I can see that this is the code associated with this two fields:
Code: Select all
<div id="ifld602" class="ax-terminal-field x24 ui-widget" title="" style="top: 112px; left: 15px; visibility: visible; width: 26px; height: 21px;">
<input type="text" maxlength="2" size="2" class="ax-terminal-inputField ax_x24i ui-widget-content" style="width: 26px;"></div>
<div id="text607" class="ax-terminal-field x20 ui-widget" title="" style="top: 112px; left: 80px; visibility: visible; width: 117px; height: 21px;">
<span class="ax-terminal-textField ax_x20o" style=""> QPASVRS</span></div>Can I read that name from the script in aXes?
I have tried a silly
Code: Select all
alert(FIELDS("txt02").getProperty("id"));