Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Services
    • Conferences
    • Courses
    1. Home
    2. Tags
    3. xpath
    Log in to post

    • headfirst

      XPath Cheatsheet
      Automated Testing • xpath cheatsheet • • headfirst  

      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • Laycee

      How to find elements by multiple different xpaths
      Automated Testing • xpath • • Laycee  

      2
      0
      Votes
      2
      Posts
      2
      Views

      jeanid

      Try below xpath to identify. //span[contains(text(),'I am span')] | //div[contains(text(),'I am Div')] | //input[contains(text(),'I am input')]
    • C

      How to create a text file for Selenium Python to read with out extra character problems?
      Automated Testing • selenium webriver python xpath • • charlenef  

      2
      0
      Votes
      2
      Posts
      2
      Views

      N

      Inserting this as the first item in the for loop did the trick customer = customer.rstrip("\n")
    • A

      How to get following sibling using xpath?
      Automated Testing • xpath sibling • • Amritpal  

      2
      0
      Votes
      2
      Posts
      1
      Views

      S

      Try with below two Xpaths 1. //label[text()='First Name']//parent::div/following-sibling::div 2. //label[text()='First Name']//parent::div/following-sibling::div//input
    • O

      Unable to get the Search results in List using Xpath or CssLocator in Selenium Webdriver
      Automated Testing • selenium webriver java xpath csslocator • • Oba22  

      2
      0
      Votes
      2
      Posts
      1
      Views

      R

      First of all, your xpath is not correct ( the "." should not be there) Try this xpath is for name: //span[contains(@class, ' a-color-base a-text-normal')] This one for price: //span[@class='a-price-whole'] This is how you can take the price text based on name locator (parent to child) //span[contains(@class, ' a-color-base a-text-normal')]//following::span[@class='a-price-whole'] If you're trying to take all results in another way, store them as main div, if you iterate trough them and scrape the text for a specific child, you need to understand how locators are created
    • 1 / 1