Watin and cursor on new IE
I have a simple project like this :
private void button1_Click(object sender, EventArgs e)
{
var browser = new IE("http://toto.com", t开发者_运维知识库rue);
browser.TextField(Find.ById("f1")).SetAttributeValue("value", "my name");
browser.TextField(Find.ById("f2")).SetAttributeValue("value", "my info");
browser.Link(Find.ById("btn")).Click();
}
When I click on my button, the window's cursor go in the corner of the screen. Do you know why ?
Many thanks
This is the default behavior for watin. You can turn in off with the following:
Settings.AutoMoveMousePointerToTopLeft = false;
精彩评论