Home > Software engineering >  Help!!!!! VBS document usage of bizarre phenomenon
Help!!!!! VBS document usage of bizarre phenomenon

Time:09-24

VBS content is as follows:
 Set ie=CreateObject (" InternetExplorer. Application ") 
Ie. Visible=True
Ie. Navigate "http://10.208.230.98:7001"

Do Until IE. ReadyState=4
Wscript. Sleep 1000
Loop

Ie. Document. GetElementById (" username "). The value="https://bbs.csdn.net/topics/admin" to fill in your user name in the quotation, now is my
Ie. Document. GetElementById (" password "). The value="https://bbs.csdn.net/topics/111111" 'quotes to fill in your password, I can't tell you
Ie. Document. GetElementById (" login "). Click


Question: after the success of the login, shut down, IE executed again VBS, directly login into (and then submitted to the getElementById error), do not need to input the user name, password, what reason is this?

Question the screening process:
1, manual open, IE is enter http://10.208.230.98:7001 then need to input the user name, password
After 2 to remove IE cache, cookies, perform VBS or just login in

CodePudding user response:

Add: manual open IE, enter the user name password after logging in, shut down, IE again open the IE, you need to input the user name and password
  •  Tags:  
  • VBA
  • Related