Hi santi
I will explain my problem in detail.In my page i have 3 dropdown list named company name,car model,engine model. company name will populate automatically.
But if iam selecting model dropdown list "car model" then only i can select engine model and these items are generated dynamically.
my problem is i need to select the item2 in the dropdown list"car model" .so that i will get the items in dropdown list "engine model" automatically while playing the script.
This my html code snippet
\\ <tr>\\ <td id="ext-gen149">\\ <div id="ext-gen150" class="gwt-Label" style="white-space: nowrap;">Organization:</div>\\ </td>\\ <td id="ext-gen141">\\ <div id="ext-gen77" class="x-form-field-wrap" style="width: 300px;">\\ <input id="newSession_org" class="x-form-text x-form-field x-combo-noedit" type="text" name="newSession_org" autocomplete="off" size="24" readonly="true" style="width: 283px;"/>\\ <img id="ext-gen78" class="x-form-trigger x-form-arrow-trigger" src="[
http://webapp/gui/clear.cache.gif"/|
http://webapp/gui/clear.cache.gif"/]>\\ </div>\\ </td>\\ </tr>
<td id="ext-gen148">\\ <div id="ext-gen147" class="gwt-Label" style="white-space: nowrap;">Car Model:</div>\\ </td>
<td id="ext-gen139">\\ <div id="ext-gen89" class="x-form-field-wrap x-trigger-wrap-focus" style="width: 300px;">\\ <input id="newSessiontypes" class="x-form-text x-form-field x-combo-noedit x-form-focus" type="text" name="newSessiontypes" autocomplete="off" size="24" readonly="true" style="width: 283px;"/>\\ <img id="ext-gen90" class="x-form-trigger x-form-arrow-trigger" src="[
http://web_app/gui/cleacache.gif"/|
http://web_app/gui/cleacache.gif"/]>\\ </div>\\ </td>\\ </tr>\\ <tr>\\ <td>\\ <div class="gwt-Label" style="white-space: nowrap;">Engine Model:</div>\\ </td>\\ <td id="ext-gen138">\\ <div id="ext-gen101" class="x-form-field-wrap" style="width: 300px;">\\ <input id="newSessionitems" class="x-form-text x-form-field x-combo-noedit" type="text" name="newSessionitems" autocomplete="off" size="24" readonly="true" style="width: 283px;"/>\\ <img id="ext-gen102" class="x-form-trigger x-form-arrow-trigger" src="[
http://webapp/gui/cleacache.gif"/|
http://webapp/gui/cleacache.gif"/]>\\ </div>\\ </td>\\ </tr>
For me xpath=//*[@id="newSession_org"] is working fine because there only one item in the company dropdown list.
Thanks for the help\\ kathu