Pregunta

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
¿Fue útil?

Solución

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.

Otros consejos

You can find the Table cell like this

var tableCell = browser.TableCell(Find.By("background", "/images/tabimage/nrm_bg.gif"));

//Then click on it
tableCell.Click();
//Wait for browser to load properly
browser.WaitForcomplete();
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top