Need help in enter/select value in text box.

21 views
Skip to first unread message

Sohan Ranga

unread,
Jan 14, 2017, 12:34:15 PM1/14/17
to webd...@googlegroups.com, seleniu...@googlegroups.com, Sohan Ranga

Hello Friends,

I need help in enter/select value in text box.

Scenario in my application:  There is an input box name as “Component”.  I am able to identify it and enter value in this however we can enter only 4 digits in this input box like 1111, 2222, 3333, 4444 (refer attached screen shot DivSelection-InputBox). Based on enter digit set it will display the list of values to select. Let say I entered 9999 then it will display all values which are tied to 9999 code. Then  I need to select one or more than value from this list. (Refer attached screen shot Div-Selection-List)

This entered ‘9999’ is span and each value tied to this code is a div in the DOM. Below is the DOM for this.

Could you please help me to select value from this text box after entering the code 1111 or 2222 etc. please review the attached screen shot for text box and list which comes after entering code.

Values tied to each code could be changed time to time. So I need to pass vale to selected from test case data sheet.

 

Note: As this text box allow only 4 digits to enter so I cannot enter the code and value e.g. “9999 - OTHER; Sub Group: HEATING & VENTILATION”

 

Input box

<li class="select2-search-field">

<label class="select2-offscreen" for="s2id_autogen54"/>

<input id="s2id_autogen54" class="select2-input select2-focused" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" style="width: 557px;" placeholder="" type="text"/>

</li>

</ul>

 

List:

------------------------------------------------------------------------------------------------------------------------

<li class="select2-results-dept-0 select2-result select2-result-selectable select2-highlighted" role="presentation">

<div id="select2-result-label-55" class="select2-result-label" role="option">

<span class="select2-match">9999</span>

 - AIR BAG SYSTEM - DIAGNOSIS ; Sub Group: AIR BAG SYSTEM

</div>

</li>

------------------------------------------------------------------------------------


Thanks in Advance !!!

DivSelection-3.PNG
DivSelection-InputBox.PNG
Div-Selection-List.PNG
Reply all
Reply to author
Forward
0 new messages