Hi, I was a silly mistake,
tarted" # select element that has text "Mark as Read" #element = ie.element_by_xpath("//lihttp://contains(.,'Mark as Read')") ie.element_by_xpath("//li[contains(.,'Mark as Read')]")
I gave you the correct code to select the element but you are not assigning it to any variable, as done in the commented sentence. change it to : element = ie.element_by_xpath("//li[contains(.,'Mark as Read')]") # Print properties of the element just to make sure you selected correct
element.
I am assuming the second line is in comment. element.value
element.tagName element.innerHTML
as you haven't assigned to variable element in the code above, so you are getting the exception. Hope this works. Regards, Angrez
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general