c# - Change value of a table cell with WatIn -


using watin, can access url , change value of html table cell defined way :

<table class=table1> <tbody>     <tr class=dis>         <td> rowspan="1" colspan="1"         famille         <input name="familysearch" onkeyup="tomaj(document.forms[0],'familysearch');changeformeltfocus(3, 'eng.faclab');" onfocus=onkeyback() maxlength=3 size=3 value="aaa"></input>         <a onclick="popupfamily('rfos');" tabindex=-1 href="#"><img border=0 hspace=4 alt=" " src="/ppm/images/picto_loupe.gif" align=absmiddle></a>         </td>     </tr> </tbody> 

i tried using :

browser.table(find.byclass("table1")).tablerows[0].tablecells[0].setattributevalue("aaa", "x82"); 

but i'm getting error saying can't access cell. idea ? thanks

can try focusing , setting value.

browser.textfield(find.byname("familysearch")).focus(); browser.textfield(find.byname("familysearch")).typetext("aaa"); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -