Home > front end >  VBS implementing web sign back problem
VBS implementing web sign back problem

Time:02-09

A website to sign back problems
Trouble expert help how to click on the sign back button

I am in
The set obj=IE. Document. GetElementsbyTagNmae (" span ")
Dim item
Dim flag
For each item in obj
. If the item id="qt" then
Flag=1
The else
Flag=0
End the if
Next
If flag=0 then
Msgbox "1"
The else
Msgbox "0"
End the if


I'm using MSGBOX to judge whether it is good to find then click
But every time is 0
Excuse me, how should change?
Web page code is as follows:





CodePudding user response:

After the flag=1 add
The Exit For

CodePudding user response:

reference 1st floor hookee response:

add after flag=1The Exit For



Added later still msgbox "0"
  • Related