selenium webdriver - Unable to click on a link -


i have been trying click on link in application @ work , control failed click on link whichever locator used. test locators selenium ide , javascript before using them in script , seem fine prior running test. manage identify , click on link this: @findby(css ="/html/body/div[4]/div/div/div[2]/div[1]/a/strong") ran test second time failed click on link same.

see below html code:

<div class="container container-outer">    <div class="row-fluid long-text-fitted content-container" id="page-content-container">       <div class="span12">          <div class="row-fluid container-alert">          </div>          <div class="left-side-spacer-layout right-side-spacer-layout" id="page-content">             <div class="button-spacer" id="breadcrumb-content">                <a href="/shopping/marketplace/landingpage">                   <strong>< search results</strong>                </a> 

you should click on parameter. remove strong attribute.

/@findby(css ="/html/body/div[4]/div/div/div[2]/div[1]/a") 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -