02-01-2013, 09:44 AM
Hi,
It looks like it is returning an object for a wrong id .Probably there is another object with the wrong id you gave. Technically, when you try to retrieve an element by passing an invalid id, it throws.."object required error" as I have mentioned in the previous post.
Consider the same example I gave, but pass "sign1" as id you will see the error message in first step itself..the second line of code is not reached yet. If you don't see the error message, you either disabled the error prompt by using "On error resume next" statement somewhere in your code or in the settings "file->Setting->run ->When error occurs during run session(this is a drop down..chosen to proceed with next step)
It looks like it is returning an object for a wrong id .Probably there is another object with the wrong id you gave. Technically, when you try to retrieve an element by passing an invalid id, it throws.."object required error" as I have mentioned in the previous post.
Consider the same example I gave, but pass "sign1" as id you will see the error message in first step itself..the second line of code is not reached yet. If you don't see the error message, you either disabled the error prompt by using "On error resume next" statement somewhere in your code or in the settings "file->Setting->run ->When error occurs during run session(this is a drop down..chosen to proceed with next step)
Code:
set oBtn=Browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").object.getElementById("signIn1")
If isobject(oBtn) Then
oBtn.Click
End If