05-14-2012, 05:31 PM
Hello,
I need to change value of the field in background IE window. With e.SetText it will change value but i also need to send result to the server by keying 'Y or clicking "Save" button on the page.
That button is normally inactive until the value in the field changes but i cannot make button active with QM commands like e.SetText. In order to do it i need to get IE window in foreground and then use key command. Unfortunately i have to keep window in background to avoid interference with other tasks.
When i run code:
el.SetText("3")
el.SetFocus
'Y
- It changes the value to '3', sets focus on that field in background but then keys "Enter" in foreground window where cursor currently is.
Please advise me if there some better code to dial text or Enter in order page script to sense it. Or, if there is a good way to send update command to server differently.
Thanks.
I need to change value of the field in background IE window. With e.SetText it will change value but i also need to send result to the server by keying 'Y or clicking "Save" button on the page.
That button is normally inactive until the value in the field changes but i cannot make button active with QM commands like e.SetText. In order to do it i need to get IE window in foreground and then use key command. Unfortunately i have to keep window in background to avoid interference with other tasks.
When i run code:
el.SetText("3")
el.SetFocus
'Y
- It changes the value to '3', sets focus on that field in background but then keys "Enter" in foreground window where cursor currently is.
Please advise me if there some better code to dial text or Enter in order page script to sense it. Or, if there is a good way to send update command to server differently.
Thanks.