The Input password field is not displaying password but mot throwing error
Ori yomi

Ori yomi @joker_20d7a

Joined:
Dec 8, 2024

The Input password field is not displaying password but mot throwing error

Publish Date: Dec 8 '24
0 0

Im trying to automate login with Rselenium in Rstudio please see below

remote_driver <- rsDriver(browser = "firefox", 
                          geckover = "0.33.0",
                          verbose = FALSE, 
                          port = 4457L)


# Assign the remote driver object to a variable
driver <- remote_driver[["client"]]

driver$navigate("https://etopup.gloworld.com:8443/agentportal/agentportal/Application.html#")
Enter fullscreen mode Exit fullscreen mode

I can easily locate the username and the userID without any error, please see below

Sys.sleep(2)
reseller_id_input <- driver$findElement(using = 'id', "gwt-debug-Reseller_ID")
# Supply a value to the input field (e.g., "your_reseller_id")
reseller_id_input$sendKeysToElement(list("Napset"))


user_id_input <- driver$findElement(using = 'xpath', "//div[contains(text(),'User ID:')]//following::input[1]")
#Supply a value to the input field (e.g., "your_user_id")
user_id_input$sendKeysToElement(list("Yodigzy"))
Enter fullscreen mode Exit fullscreen mode

The problem is the password part, when i locate the password field and send in password text, it doesnt reflect in the password field and does not show or display any error. see below

#Locate the Password input field
password_field <- driver$findElement(using = "id", value = "gwt-debug-Password")
password_field$sendKeysToElement(list("your-password"))
Enter fullscreen mode Exit fullscreen mode

and without this password i cant proceed to login, is there any logic behind this or what, i really need help with this.

Thanks

Comments 0 total

    Add comment