-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test if a field is enabled #32
Comments
This is something we don't have a specific API for currently but can access the enabled attribute on the element. You can use the xrmBrowser.Document.getElementById("firstname").GetAttribute("disabled"); try get the details. |
Sorry but could you provide some more help with this. When I tried grabbing a field with
I can see the full element in the watcher. However if I try
|
Ok, it looks like there will be a span that has a lock image. The disabled setting is never set. Try something like this. |
You can also execute client script that will get the control disabled status. xrmBrowser.Driver.ExecuteScript("Xrm.Page.ui.controls.get('firstname').getDisabled();").ToString(); That should return True or False. |
So I was still getting an error with We ended up realising it was already present in the IWebElement properties..... |
this actually works so the previous |
Hi,
I'm currently playing with the API and it's very nice, but I haven't found how to test if a field is enabled.
May be I missed something, but if not, it would be nice to have this possibility :-)
The text was updated successfully, but these errors were encountered: