[英]Selenium2Library trouble with selectors
我正在使用Selenium2Library做一些測試,但是在元素選擇器上遇到了一些麻煩。 我嘗試了很多。 許多不同的方式,似乎都沒有。 我想做的是測試登錄/注冊的功能,但是我找不到正確的方法。
*** Settings ***
Documentation This is some basic info
Library Selenium2Library
*** Variables ***
*** Keywords ***
*** Test Cases ***
Check log in and register
open browser http://www.999.md
set browser implicit wait 5
click element css=div.user-login-btn
這是我總是會得到的錯誤:
ValueError:元素定位符'css = div.user-login-btn'與任何元素都不匹配。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.