- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
09-30-2019 09:19 AM
We are using WebFormFields in the Web Forms Setting of our connector. We are attempting to log onto an Integrated Dell Remote Access Controller (iDRAC) . We are receiving an error that the session has been closed because the login failed, with a message:
Unable to enter input to element 'password'. Refer to the log for more information.
The WebFormFields has this:
username>{Username}@hq.{logondomain}(SearchBy=name)
password>{Password}(SearchBy=name)
cux-button>(Button)(SearchBy=class)The relevant lines from the ClientDispatcher.log are:
[30/09/2019 | 08:54:54] | :: | PSMDU019I Dispatcher trace message: [WebElementWrapper :: EnterText -> Sending input to element 'password'.]
[30/09/2019 | 08:54:54] | :: | PSMDU018E Dispatcher error: [WebElementWrapper :: EnterText -> Failed to send text to element. Exception Details: OpenQA.Selenium.InvalidElementStateException: invalid element state: Element must be user-editable in order to clear it. (Session info: chrome=77.0.3865.90) (Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),platform=Windows NT 6.3.9600 x86_64) at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebElement.Clear() at CyberArk.WebAutomationUtils.WebElementWra
[30/09/2019 | 08:54:54] | :: | pper.EnterText(String text)]I believe the relevant lines from the HTML code for the iDRAC login page are:
<div class="cui-start-screen-label"><span translate="password" class="ng-scope">Password</span>:</div>
<input type="password" name="password_hidden" style="display:none"> <!--This is a workaround for Firefox to stop autofill the password. Never delete this -->
<input class="cui-start-screen-password cui-textbox ng-pristine ng-untouched ng-invalid ng-invalid-required ng-valid-maxlength" name="password" ng-model="config.password" type="password" placeholder="" required="" maxlength="254" ng-disabled="config.blockingTime>0" autocomplete="off">
</label>
</div>I suspect that the "workaround for Firefox to stop autofill the password" is causing the problem here, but I do not know how to workaround this "workaround".
I welcome any suggestions.
10-01-2019 03:40 AM
Try this sequence please:
username>{Username}
cui-start-screen-password>(Click)
cui-start-screen-password>{Password}
cux-button>(Button)Clicking on an element before changing it may make it editable due to internal mechanisms attached to the password field element.
10-01-2019 03:40 AM
Try this sequence please:
username>{Username}
cui-start-screen-password>(Click)
cui-start-screen-password>{Password}
cux-button>(Button)Clicking on an element before changing it may make it editable due to internal mechanisms attached to the password field element.
10-01-2019 11:01 AM
That worked! Thank you very much!
10-06-2019 09:34 PM
It is not working for me .Please let me know what values you gave.
Thanks
11-25-2019 06:59 AM
hey,
this solution was not working for me, but I had a successful connection by clicking 3 times. Thanks @Dmitriy Reznikov for the idea
username>{Username}
cui-start-screen-password>(Click)
cui-start-screen-password>(Click)
cui-start-screen-password>(Click)
cui-start-screen-password>{Password}
cux-button>(Button)
04-15-2020 07:19 AM
I was having the same issue, however I needed the same connection component to connect to either iDRAC version 8 or iDRAC version 9.
the | is treated as an OR statement.
before the | is the version 8 input.
I had to use a click to move the cursor to the password field for version 9
for the version 9 to be able to search by xpath, I had to use the class. Concatenating the path to normalize spaces on the class attribute is the work around to make it work.
this is the code that worked for me:
//input^[starts-with(@id, 'user')^] | //*^[contains(concat(' ',normalize-space(@class),' '),' cui-start-screen-username ')^] > {Username} (searchby=xpath)
//*^[starts-with(@id, 'password')^] |//*^[contains(concat(' ',normalize-space(@class),' '),' cui-start-screen-password ')^] > (click) (searchby=xpath)
//input^[starts-with(@id, 'password')^] | //*^[contains(concat(' ',normalize-space(@class),' '),' cui-start-screen-password ')^]> {Password} (searchby=xpath)
//span^[starts-with(@id, 'submit')^] | /html/body/div^[2^]/idrac-start-screen/div/div/div/div/div/form/div^[2^]/div^[3^]/button > (Button) (searchby=xpath)
//span^[starts-with(@id, 'gen_logout_lbl')^] | //*^[contains(concat(' ',normalize-space(@class),' '),' ci ci-color-white ')^]> (Validation) (searchby=xpath)
07-23-2020 07:58 AM
Hi,
I have a application where the web page all the element is given below for Username and password field.
So i am trying to input the WEb form filed using the XPATH expression
//*[@id="cappuccino-body"]/div[5]/div/div/div/div[1]/div[1]/div[2]/div[2]/div[2]/div>{Username}(SearchBy=XPATH)
But when we try to insert the values to the element we are getting the below exception.
aFailed to send text to element. Exception Details: OpenQA.Selenium.InvalidElementStateException: invalid element state: Element must be user-editable in order to clear it.
(Session info: chrome=79.0.3945.79)
Please suggest how to progress on this error.
Thanks
07-23-2020 08:04 AM
Harish,
when using xpath, you have to use the ^ before every [ or ]
try the below:
//*^[@id="cappuccino-body"^]/div^[5^]/div/div/div/div^[1^]/div^[1^]/div^[2^]/div^[2^]/div^[2^]/div>{Username}(SearchBy=XPATH)
07-23-2020 08:13 AM
Hi @mclain allen ,
From web page itself i am getting the XPATH syntax as below
//*[@id="cappuccino-body"]/div[5]/div/div/div/div[1]/div[1]/div[2]/div[2]/div[2]/div
so if i add the ^ in the prefix i am getting the timeout error to find tthis element by XPATH, as it is not able to locate this in the web page.
07-23-2020 08:20 AM
Hi,
Below is my web page where the user name is taking the latest value which was signed in.
07-23-2020 08:31 AM
Yes. when using xpath, you must use the ^ before any brackets [ ]. you have to manually add them to the webform settings.
you get this value from the webpage: //*[@id="cappuccino-body"]/div[5]/div/div/div/div[1]/div[1]/div[2]/div[2]/div[2]/div
put this value in your web form : //*^[@id="cappuccino-body"^]/div^[5^]/div/div/div/div^[1^]/div^[1^]/div^[2^]/div^[2^]/div^[2^]/div
07-23-2020 09:11 AM
Hi @mclain allen ,
I am getting below error message as it was not able to find the element.
23/07/2020 05:06:33.853 | Info -> AttributeTypeBase :: Find -> Element '//*^[@id="cappuccino-body"^]/div^[5^]/div/div/div/div^[1^]/div^[1^]/div^[2^]/div^[2^]/div^[2^]/div' was not found using type 'XPATH'.
23/07/2020 05:06:33.853 | ERROR -> HTMLPageController :: FindElement -> Timeout error. Element '//*^[@id="cappuccino-body"^]/div^[5^]/div/div/div/div^[1^]/div^[1^]/div^[2^]/div^[2^]/div^[2^]/div' was not found in new page.
23/07/2020 05:06:33.853 | Info -> HTMLPageController :: CloseBrowser -> START
Whereas if i try with the exact xpath which i receive from web page, i used to get the below error message.
aFailed to send text to element. Exception Details: OpenQA.Selenium.InvalidElementStateException: invalid element state: Element must be user-editable in order to clear it.
23/07/2020 04:15:49.860 | Info -> WebElementWrapper :: EnterText -> Sending input to element '/html/body/div/div[5]/div/div/div/div[1]/div[1]/div[2]/div[2]/div[2]/div'.
23/07/2020 04:15:49.892 | ERROR -> WebElementWrapper :: EnterText -> Failed to send text to element. Exception Details: OpenQA.Selenium.InvalidElementStateException: invalid element state: Element must be user-editable in order to clear it.
(Session info: chrome=79.0.3945.79)
(Driver info: chromedriver=2.35.528161
07-23-2020 09:33 AM
I dont have an answer for you. You might have to put a ticket in with cyberark.
did you enter this in your top field for the username? //*^[@id="cappuccino-body"^]/div^[5^]/div/div/div/div^[1^]/div^[1^]/div^[2^]/div^[2^]/div^[2^]/div>{Username}(SearchBy=XPATH)
07-23-2020 09:39 AM
Yes, i am getting the below error message while verifying the account.
23/07/2020 05:06:33.853 | Info -> AttributeTypeBase :: Find -> Element '//*^[@id="cappuccino-body"^]/div^[5^]/div/div/div/div^[1^]/div^[1^]/div^[2^]/div^[2^]/div^[2^]/div' was not found using type 'XPATH'.
23/07/2020 05:06:33.853 | ERROR -> HTMLPageController :: FindElement -> Timeout error. Element '//*^[@id="cappuccino-body"^]/div^[5^]/div/div/div/div^[1^]/div^[1^]/div^[2^]/div^[2^]/div^[2^]/div' was not found in new page.
23/07/2020 05:06:33.853 | Info -> HTMLPageController :: CloseBrowser -> START
07-23-2020 09:44 AM
You will probably have to put a ticket in with CyberArk.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

