Hi,
I had a problem where i could not check if a button was disabled, i
used the following method:

if(getAttribute("pbi.createButton", "disabled") != null){
//disable attribute is there, so the button is disabled
}
where createButton was  defined as:

ui.Container(uid: "pbi", clocator: [tag: "div", class:"modContainer"],
group: "false"){
      Button(uid: "createButton", clocator:[id: "submitButton"])
}


the method would always return false, even though the html of the
button looks like this:

<input id="submitButton" type="submit" value="Create" disabled=""
onclick="$F.post()" style="width: 100px;" tabindex="3"
name="submitButton"/>

and here is what the log looks like:
17:35:36.590 INFO - Command request: getAttribute[//descendant-or-
self::[EMAIL PROTECTED]"modContainer"]/descendant-or-self::input
[EMAIL PROTECTED]"submitButton"[EMAIL PROTECTED], ] on session 526434
17:35:36.606 INFO - Got result: ERROR: Could not find element
attribute: //descendant-or-self::[EMAIL PROTECTED]"modContainer"]/descendant-
or-self::[EMAIL PROTECTED]"submitButton"[EMAIL PROTECTED] on session 526434


i can click on the button from tellurium, so i know its xpath is not
wrong

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to