nwalimbe
7 years agoOccasional Contributor
The object does not support this property or method
am a newbie and trying to recognize objects using xpath as nothing else is working.
So the issue is when I try to select xpath for a calendar icon, it is unable to find the exact object and on using 'click' method, gives above error. Pls. help resolving this. Screenshots attached:
Code being used:
obj = page.FindChildByXPath('//*[@id="TransitStartTime_LocalDate"]/span/i', True)
if (GetVarType(obj) != varNull):
# If the element was found, click it
obj.Click()
else:
# If the element was not found, post a message to the log
Log.Message('The element was not found.')
Error received is:
Python runtime error. AttributeError: The object does not support this property or method. Error location: Unit:
AttributeError: The object does not support this property or method.
Firefox and Chrome returns xpath as:
//*[@id="TransitStartTime_LocalDate"]/span/i
Pls. help.