title: Selenium ComparisonFailure between 2 value
body: <p>This is the code:</p>
  <pre><code>    List&lt;WebElement&gt; ProductPrices1 = driver.findElements(By.className(&quot;prc-slg&quot;));
      String text1Price = ProductPrices1.get(0).getText();
      
      thread(1500);
      element(ClickBucket).click();
      thread(1500);
  
      
      List&lt;WebElement&gt; elements = driver.findElements(By.xpath(&quot;//div[contains(@class, 'pb-basket-item-price')]&quot;));
      for (WebElement element : elements) {
          str = element.getText();
  
          int cntTL = (str.length() - str.replace(&quot;TL&quot;, &quot;&quot;).length()) / 2;
          if (2 == cntTL) {
              str = str.split(&quot;TL&quot;)[1].replace(&quot;\&quot;&quot;, &quot;&quot;) + &quot; TL&quot;;
          }
        
      }
      
      System.out.println(&quot;first value : &quot;+text1Price+&quot;Bucket Value : &quot;+str);
       Assert.assertEquals(text1Price,str);
  </code></pre>
  <p>This is the result: <br><br>
  first value : 1.189 TL Bucket Value : <br>
  1.189  TL<br>
  basarisiz<br>
  FAILED: signInTestCase<br>
  org.junit.ComparisonFailure: expected:&lt;[1.189] TL&gt; but was:&lt;[<br>
  1.189 ] TL&gt;</p>