Bascially I want to select value from dropdown and on selecting the
value jquery event get fired and some UI changes.But in my automation
i can only change the values from dropdown UI doen't changes.
I tried following code
@browser.select_list(:id,'OTRHeader1_sellightBoxSelect').select(data[i]
[0])
@browser.select_list(:id,'sellightBoxSelect').fire_event("change")
my source code is..
DOM SOURCE CODE - Basically it is a User control so id is selectlist
id is get concat with Header1_+ "sellightBoxSelect"
<select name="Header1$sellightBoxSelect"
id="Header1_sellightBoxSelect" class="lightBoxSelect" style="font-
size: 13px; vertical-align: top;">
<option value="10240">Aurora Bistro</option><option
value="18082">Cocina Poblana Emeryville</option><option
value="1004">Coco Pazzo</option><option value="10177">Indian Summer</
option><option value="10200">Market - Paris</option><option
value="7584">Vista Grill</option></select>
JQUERY -
$('select[id$=sellightBoxSelect]').change(function () {
//set Acct# in User Details section
$('dd[id$=ddAcctNo]').text($('select[id
$=sellightBoxSelect]').val());
//set acc mgr details
SetAccMgrDetails();
//draw piechart
GetPieChart();
});
but i m falied to fire the events..
Please help me as soon as possible.
Thanks,
Sachin Marne
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]