Forum Discussion
Hi,
a) How input is sent to control in your test code?
b) Does it help if you set an input focus (.Click() ) or .SetFocus() ) to the required control before entering the text ?
- smartbearrj6 years agoContributor
Hi AlexKaras,
1-- I am trying both - Keys(object ,string) and setText(object, string).
2-- I have not tried it yet. I am going to try setFocus and click()
Thanks,
- AlexKaras6 years agoChampion Level 3
> I am going to try setFocus and click()
Yes, please. While <object>.Keys() is expected to put required keys sequence into <object>'s input queue, I've seen the cases when the input was sent to (or intercepted by?) some other control. Explicit input focus setting to the required control always solved this problem.
- smartbearrj6 years agoContributor
Hi AlexKaras,
Could you plz suggest how to use setFocus() method . I am finding in my log obj.SetFocus() is not a function.
Thanks,
Related Content
- 28 days ago
- 10 years ago
Recent Discussions
- 3 hours ago
- 10 hours ago
Working with Visual Test
Solved2 days ago