I want to input password google but it not found

Hi @Dome2000,

I’ll start with the usual questions:

  • which library are you using?
  • is the field your trying to interact inside a frame(s)
  • is the field your trying to interact inside a shadow dom?

With the information given we can’t really know what your issue is or how to guide you, other than to say the error seems to indicate it failed the step before input test with ${user_yt}, but ask yourself those questions and you may find the answer yourself.

I will also suggest you ask yourself if you have permission from google to automate youtube?

Dave.

i use SeleniumLibrary i need to input password to “Enter your password” and click Next

my code

*** Settings ***
Library SeleniumLibrary

*** Variables ***
${URL} https://www.youtube.com/
${btn_login} //*[@id=“buttons”]/ytd-button-renderer/yt-button-shape/a/yt-touch-feedback-shape/div/div[2]
${user_yt} ************
${pass_yt} ************

*** Test Cases ***
Play Song On YouTube
Open Browser And Go To YouTube
Log In To YouTube

*** Keywords ***
Open Browser And Go To YouTube
Open Browser ${URL} chrome
Maximize Browser Window

Log In To YouTube
Click Element //[@id=“buttons”]/ytd-button-renderer/yt-button-shape/a/yt-touch-feedback-shape/div/div[2]
Input Text name:identifier ${user_yt}
Click Element //
[@id=“identifierNext”]/div/button
Input Text //*[@id=“password”]/div[1]/div ${pass_yt}

sorry my english is bad

Hi @Dome2000,

I fully understood what you’re trying to do and I even gave you a hint as to the issue with your script, no one here can help you to perform illegitimate actions, and you’ve provided no evidence you are a google employee or that you have google’s permission to automate their sites.

I suggest you refer to the Guidelines and Terms of Service for this forum.

Dave.