title: Parse string on html source code
body: <p>this is my very first question here. I have already followed this website for a long time and found a lot of information thanks to you guys. So, I want to first thank you sincerely for all these amazing works and answers you post.</p>
  
  <p>I am currently working for a import/export online shop and look for some optimization for our prestashopweb daily task. I use Java and the API Selenium and work on Chrome Driver.</p>
  
  <p>I am looking for a way to remove a product quantity depending its specification(colors, ohm, mg...). For example. if a customer has ordered 1 product yellow color, I have to first parse the yellow string on his order page where there is the product. Then I have to go on the product page and remove 1 piece on the yellow color quantity text field.</p>
  
  <p>Everything is ok, beside one thing. Parse a String on the HTML code source and try to match it with another String on an other page. Maybe with xpath?</p>
  
  <p>Here are the pictures for a better understanding.
  Hello, it is just a script which opens my back office account, and make actions for me. For example </p>
  
  <p>int productNumber = driver.findElements(By.xpath("//table[@id='orderProducts']/tbody/tr")).size()-3;</p>
  
  <pre><code>            for(int i = 1 ; i&lt;=productNumber ; i++) 
              {
                  int quantité = Integer.parseInt(driver.findElement(By.xpath("//table[@id='orderProducts']/tbody/tr["+i+"]/td[4]")).getText());
  
                  driver.findElement(By.xpath("//table[@id='orderProducts']/tbody/tr["+i+"]/td[2]/a/span[@class='productName']")).click();
                  driver.findElement(By.xpath("//div[@class='list-group']/a[@id='link-Quantities']")).click();
  
              }
  </code></pre>
  
  <p>
                                  
                                      Pack Box AIO 70W - Teslacigs<br />Couleur : Yellow<br />
                                      Réf. PA70WT                                                                 
                              </p>