开发者

Watin and cursor on new IE

开发者 https://www.devze.com 2023-02-22 16:27 出处:网络
I have a simple project like this : private void button1_Click(object sender, EventArgs e) { var browser = new IE(\"http://toto.com\", t开发者_运维知识库rue);

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

精彩评论

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

关注公众号