I am using Robot Framework and Selenium2Library. I am trying to check that given element is disabled. Code used is :
Element Should Be Disabled | //div[6]/div[2]/div/div[2]/div[1]/div[2]/div/div/div[2]/div[2]/span[4]
This code is giving me following error :
ERROR: Element //div[6]/div[2]/div/div[2]/div[1]/div[2]/div/div/div[2]/div[2]/span[4] is not an input.
Help in solving this problem would be appreciated. Thanks !!
What I did was Used the "Get Element Attribute" keyword on the id of the element follow by the attribute I wanted to access so here it would be @disabled Get Element Attribute|id@disabled and stored it as a variable. You can then check if the value of that variable is disabled or not. Hope this is helpful