我如何使用WatiN点击中的

我希望鼠标移动到包含onclick方法的行

然后点击它

我怎么能这样做???

<table width="100%" class="FormTable" border="0" cellspacing="1" cellpadding="0"> <tbody> <tr> <td> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="100" background="/images/tabimage/nrm_bg.gif" nowrap="" onmouseover="this.style.cursor = 'pointer';" onmouseout="this.style.cursor = 'default';" onclick="__doPostBack('HstUnitExchangeLetterSendEdit$tabControl1','1')"> <div class="Normal"> ---text---main info

I want the mouse move on line that contained onclick method

and Click on it

How i can do this ???

<table width="100%" class="FormTable" border="0" cellspacing="1" cellpadding="0"> <tbody> <tr> <td> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="100" background="/images/tabimage/nrm_bg.gif" nowrap="" onmouseover="this.style.cursor = 'pointer';" onmouseout="this.style.cursor = 'default';" onclick="__doPostBack('HstUnitExchangeLetterSendEdit$tabControl1','1')"> <div class="Normal"> ---text---main info

最满意答案

这个yaar是什么检查了我之前给出的代码,并在你给出的html页面上正常工作

Browser browser = SetupBrowser(); browser.GoTo("file:///C:/Users/vbhadauria/Desktop/New%20folder/mail.html"); var tablecell = browser.TableCell(Find.By("background", "/images/tabimage/sel_bg.gif")); tablecell.Click(); browser.WaitForComplete();

您也可以仅在本地计算机上检查它。

What is this yaar have checked my previously given code and its working fine on the html page given by you

Browser browser = SetupBrowser(); browser.GoTo("file:///C:/Users/vbhadauria/Desktop/New%20folder/mail.html"); var tablecell = browser.TableCell(Find.By("background", "/images/tabimage/sel_bg.gif")); tablecell.Click(); browser.WaitForComplete();

You can also check check it on local machine only.

我如何使用WatiN点击中的

我希望鼠标移动到包含onclick方法的行

然后点击它

我怎么能这样做???

<table width="100%" class="FormTable" border="0" cellspacing="1" cellpadding="0"> <tbody> <tr> <td> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="100" background="/images/tabimage/nrm_bg.gif" nowrap="" onmouseover="this.style.cursor = 'pointer';" onmouseout="this.style.cursor = 'default';" onclick="__doPostBack('HstUnitExchangeLetterSendEdit$tabControl1','1')"> <div class="Normal"> ---text---main info

I want the mouse move on line that contained onclick method

and Click on it

How i can do this ???

<table width="100%" class="FormTable" border="0" cellspacing="1" cellpadding="0"> <tbody> <tr> <td> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="100" background="/images/tabimage/nrm_bg.gif" nowrap="" onmouseover="this.style.cursor = 'pointer';" onmouseout="this.style.cursor = 'default';" onclick="__doPostBack('HstUnitExchangeLetterSendEdit$tabControl1','1')"> <div class="Normal"> ---text---main info

最满意答案

这个yaar是什么检查了我之前给出的代码,并在你给出的html页面上正常工作

Browser browser = SetupBrowser(); browser.GoTo("file:///C:/Users/vbhadauria/Desktop/New%20folder/mail.html"); var tablecell = browser.TableCell(Find.By("background", "/images/tabimage/sel_bg.gif")); tablecell.Click(); browser.WaitForComplete();

您也可以仅在本地计算机上检查它。

What is this yaar have checked my previously given code and its working fine on the html page given by you

Browser browser = SetupBrowser(); browser.GoTo("file:///C:/Users/vbhadauria/Desktop/New%20folder/mail.html"); var tablecell = browser.TableCell(Find.By("background", "/images/tabimage/sel_bg.gif")); tablecell.Click(); browser.WaitForComplete();

You can also check check it on local machine only.