05-28-2009, 06:28 PM
Hi,
Hope you forget to give the condition...
If (Condition) = true then
Statement....
Else
Statement
End If
Stephen
Hope you forget to give the condition...
If (Condition) = true then
Statement....
Else
Statement
End If
Code:
If Browser("Yahoo! Mail: The best").Page("(9 unread) Yahoo! Mail,_3").WebElement("Offline").GetROProperty("value",Offline)=False Then
Browser("Yahoo! Mail: The best").Page("(9 unread) Yahoo! Mail,_3").WebElement("Offline").Click Else
Browser("Yahoo! Mail: The best").Page("(9 unread) Yahoo! Mail,_2").WebElement("Available").Click
End If
Stephen