onchange event does not get fired on selenium type command

前端 未结 8 2127
予麋鹿
予麋鹿 2020-12-17 21:47

I am typing some value, on change do a total. But somehow, this event is not getting fired with selenium type command.

I also tried typeKey and typeAt ..But no succe

8条回答
  •  猫巷女王i
    2020-12-17 22:20

    Your solution normally is found by looking at the JavaScript code..

    An option you always have is to put in the value and manually trigger the actual OnChange event from code.

    There are an open issue about this link text Problem with FireFox Windows not being active and prevents the OnChange to be triggered.

    Try this before using typeKeys command:

    selenium.selectWindow(null);
    

提交回复
热议问题