0

* Settings *

Library  SeleniumLibrary

* Variables *

${Browser}  Firefox
${URL}  https://allegis.ramcocloud.com/RVW/extui/vwrt/LaunchPanel.htm

* Test Cases *

TC1 Browser Start and close
    Open Browser  ${URL}  ${Browser}
    Input Text  name:ide_username  INR004914
    Input Text  xpath://input[@name='ide_password']  tsip890*()
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352

2 Answers2

0

I suppose the error is on the first 'Input Text'. try to copy its xpath like the instruction you made below

 Input Text  xpath://input[@name='ide_username']  INR004914
Mz98
  • 51
  • 5
  • its not able to locate element for this line "Input Text name:ide_username INR004914" maybe because of timing problem. So i am not getting the way in which it can locate the elements – komal maheshwari Nov 29 '19 at 06:27
0

Seems you were close. The desired element is a JavaScript enabled element so you need to induce wait and you can use either/both (clubbing up) of the waiters and you can use the following Locator Strategies:

  • Inducing Wait Until Element Is Visible:

    TC1 Browser Start and close
        Open Browser  ${URL}  ${Browser}
        Wait Until Element Is Visible    xpath://input[@id='ide_username' and @name='ide_username']    20  seconds
        Input Text  xpath://input[@id='ide_username' and @name='ide_username']  INR004914
        Input Text  xpath://input[@name='ide_password']  tsip890*()
    
  • Inducing Wait Until Element Is Enabled:

    TC1 Browser Start and close
        Open Browser  ${URL}  ${Browser}
        Wait Until Element Is Enabled    xpath://input[@id='ide_username' and @name='ide_username']    20  seconds
        Input Text  xpath://input[@id='ide_username' and @name='ide_username']  INR004914
        Input Text  xpath://input[@name='ide_password']  tsip890*()
    

You can find a detailed discussion about Wait Until Element Is Visible and Wait Until Element Is Enabled in How to click a row that has javascript on click event in RIDE


Reference

A couple of references:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352