qtp - vbscript sendkeys works only once after system restart -


i have weird situation here , not able find out reason , fix.

i have written script using hp uft 11.52 testing .net web application on ie8

here code:

if browser(x).page(x).frame(x).webedit(abc).exist(0)     browser(x).page(x).frame(x).webedit(abc).click     set objssn=createobject("wscript.shell")     objssn.sendkeys" "     set objssn=nothing     browser(x).page(x).frame(x).webedit(abc).object.focus()     browser(x).page(x).frame(x).webedit(abc).set 100-10-1000 end if 

this code runs fine when run script after starting windows laptop. if run same code second time, code not enter space , not enter ssn. entering space required since clicking webedit result in blank selection, if enter script gives incorrect data.

my teammate works on virtual machine running these scripts had no issues running script on machine. suspect there setting either in ie or windows somewhere needs modified.

can me identifying issue.

to enter ssn in textbox using qtp, have click & focus?

below script should fine.

if browser(x).page(x).frame(x).webedit(abc).exist(0)     browser(x).page(x).frame(x).webedit(abc).set "100-10-1000" end if 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -