xpath - Locating image in selenium -


i want check if logo (image) displayed or not unable find out xpath same.the html code below:

 <div class="page-wrapper">  <a class="brand pull-left" href="www.com">the logo<\a> 

what possible xpath verifying "the logo " displayed.

may 1 of these works:

//a[contains(text(), 'the logo')]  //a[contains(text(), 'the logo') , @href='www.com']  //div[@class='page-wrapper']/a[contains(text(), 'the logo')]  //div[@class='page-wrapper']/a[contains(text(), 'the logo') , @href='www.com'] 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -