I have the following code in my script:
System.out.println(selenium.getAttribute("xpath=//div[@class='guest clearfix'][1]/@id"));
When I try to run the script, it says the element is not found. If I enter the xpath into XPather (addon for firefox) //div[@class='guest clearfix'][1]/@id
, it will correctly give me the id.
I am stumped as to why it will not run in my code. If anyone can see any error in my code, please let me know.
Thanks