Selenium / Firefox: Command “.click()” doesn't work with a found element

后端 未结 6 2241
陌清茗
陌清茗 2020-12-14 08:17

I tried to find a solution to this thing and I spent a lot of time, but it is almost imposible to me to do that.

The matter: I am using Selenium with Java in Firefox

6条回答
  •  猫巷女王i
    2020-12-14 08:58

    Actions actions = new Actions(driver);
    actions.moveToElement(element);
    actions.click(element);
    Action action = actions.build();
    action.perform();
    

    This worked for me.

提交回复
热议问题