c# - Watin don't update button after select option in list -
c# - Watin don't update button after select option in list -
i seek select 1 alternative in next html :
<select class="gwt-listbox" style="" gwtdebugid="signup-flow-choose-timezones"> <option value="">ahora seleccione una zona horaria:</option> <option value="">------</option> <option value="pacific/honolulu">(gmt-10:00) hora de hawai</option> <option value="america/anchorage">(gmt-09:00) hora de alaska</option> <option value="america/los_angeles">(gmt-08:00) hora del pacífico</option> <option value="america/denver">(gmt-07:00) hora de las montañas rocosas</option> <option value="america/phoenix">(gmt-07:00) hora de las montañas rocosas - arizona</option> <option value="america/chicago">(gmt-06:00) hora central</option> <option value="america/new_york">(gmt-05:00) hora del este</option> </select>
when alternative selected via click illustration in web page 1 button enabled. seek select next code :
var alternative = ie.selectlist(find.by("gwtdebugid", s => s.equals("signup-flow-choose-timezones"))).options[3]; option.select(); option.change();
but code button remains disabled, nil happens.
i seek run jquery code eval()
function in watin in next way :
ie.domcontainer.eval("$('select.gwt-listbox').change();");
but next exception :
referenceerror: '$' not defined.
any help appreciated.
here how this
//my drop downwards list selectlist ddlaccounts = ie.selectlist(find.byid("ddlclientnumbers_m_ddl")); //here select alternative need ddlaccounts.options[i].select(); //or select value case ddlaccounts.selectbyvalue("pacific/honolulu");
you can add together sure browser finished load
ie.waitforcomplete();
buy think problem in place if button in frame , not in ie,,sow mean need load frame each time after ddlaccounts.options[i].select();
frame yourframe = ie.frame(find.byid("id")); selectlist ddlaccounts = ie.selectlist(find.byid("ddlclientnumbers_m_ddl")); ddlaccounts.selectbyvalue("pacific/honolulu"); //and load frame 1 time again yourframe = ie.frame(find.byid("id"));
and can updated button
c# watin
Comments
Post a Comment