Why do we need Robot class when we have Actions class in selenium

后端 未结 2 1517
-上瘾入骨i
-上瘾入骨i 2020-12-21 09:31

I was going through the selenium learning and when I was exploring interaction with keyboard and mouse topic, I found this code. With the help of Robot class,perform Enter :

2条回答
  •  萌比男神i
    2020-12-21 09:34

    The Main Difference is Actions class simulates with mouse and keyboard and Robot class enables the actual mouse and keyboard so you can see the movement of the mouse cursor. For more Details please Click on this Link -> Robot class in Selenium

提交回复
热议问题