robotframework - How do I use Click Element function with robot framework when the element does not have id or name? -


i'm using selenium2library in robot framework automate web tests. currently, i'm having problems automating click of login button click element function.

this element use:

<a class="transparentbtn loginlink ng-scope" ng-click="commonservice.gigyaraaslogin()" translate="btn_admin_login_watchlist">login</a>

and xpath if copy console: //*[@id="menu"]/div/div[5]/div/div/div[2]/ul/li[2]/a

i have trouble finding locator use if want click element.

these of things i've tried far:

  1. click element css=a.loginlink
  2. click element link=login

try locate unique css (1 matching node) or try this

wait until element visible   xpath=//*[@id="menu"]/div/div[5]/div/div/div[2]/ul/li[2]/a      10 click element    xpath=//*[@id="menu"]/div/div[5]/div/div/div[2]/ul/li[2]/a 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -