VBScript .focus function doesn't execute on Windows Server 2003

The .focus function won't execute on Windows Server 2003 when I run my VBScript, however it works fine up to that point. Does anyone know why this could be?

Here's my script:

WScript.Sleep 1000 .getElementByID("quickSearchMsisdn").value = "085729916" 
WScript.Sleep 1000 .getElementByID("quickSearchMsisdn").value = "0857299167" 
WScript.Sleep 1000 .getElementByID("quickSearchMsisdn").value = "0857299167"
                   .getElementByID("quickSearchMsisdn").Focus 
WScript.Sleep 10000 .getElementByID("doSendSMS").click

1 Answer

  1. Michael- Reply

    2019-11-13

    There is not Focus Function in vbscript that I am aware of, Maybe you are describing the focus method of some class? Some code would be very helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>