我如何在 <table> 中点击 &lt;td;与 WatiN [英] how i can click on &lt;td in &lt;table&gt; with WatiN

查看:27
本文介绍了我如何在 <table> 中点击 &lt;td;与 WatiN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让鼠标在包含 onclick 方法的线上移动

I want the mouse move on line that contained onclick method

然后点击它

我该怎么做???

<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 页面上工作正常

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.

这篇关于我如何在 <table> 中点击 &lt;td;与 WatiN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆