onchange event does not get fired on selenium type command

前端 未结 8 2080
予麋鹿
予麋鹿 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条回答
  •  醉梦人生
    2020-12-17 22:16

    This worked for me in IDE do the following 3 commands in order

    Typekeys   targetID    input
    FireEvent  targetID    focus
    Type       targetID    input
    

    The source looks like this (input was letter r)

    
    typeKeys
    //form/input
    r
    
    
    fireEvent
    //form/input
    focus
    
    fireEvent
    //form/input
    focus
    
    
    type
    //form/input
    r
    
    
    
    type
    //form/input
    r
    
    

提交回复
热议问题