机器人框架:如何定位输入文本字段以及如何在其中输入值

Robot framework: How to locate a input text field and how to input a value in it

我的HTML是这样的:

<input type="text" placeholder="Search for extensions" class="user-input" style="width: 370px;">

如果我尝试获取 html 路径的 Xpath,我会在输入文本路径下方,但我也无法输入任何文本并出现以下错误

Element with locator 'xpath://*[@id="extensions-container"]/div/div[3]/div2/div2/div/div2/form/span2/input' not found.

Click Element    name:extensions
Input Text       xpath://*[@id="extensions-container"]/div/div[3]/div[1]/div[1]/div/div[1]/form/span[1]/input    cli 

试试这个定位器:

//input[@placeholder="Search for extensions"] 

这应该有效:

Input Text    css:input[placeholder="Search for extensions"]    cli