Selenium 2.0b3 IE WebDriver, Click not firing

后端 未结 18 1937
我寻月下人不归
我寻月下人不归 2020-11-29 02:33

When using the IE driver with IE9, occasionally the Click method will only select a button, it wont do the action of the Click(). Note this only happens occasionally, so i d

18条回答
  •  清歌不尽
    2020-11-29 03:00

    I find the IE driver buggy and the same version of my code behaves differently on different machines with the same version of IE.

    To get consistently before each action I do the following.

       driver.SwitchTo().Window(driver.CurrentWindowHandle);//Force Focus
    

    For me this makes the IE driver behave more as expected.

提交回复
热议问题