开发者

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;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜