SHARE
TWEET

Untitled

a guest Feb 17th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="col-xs-12 col-sm-6 col-md-4 block_history_" style="">
  2. <section class="product">
  3.     <div class="product__holder">
  4.         <a href="https://www.cosmedicalsupplies.com/.html" class="product__category"></a>
  5.         <h2 class="product__title">
  6.             <a href="juvederm-hydrate.html">JUVEDERM® HYDRATE™ Europe</a>
  7.         </h2>
  8.     </div>
  9. </section>
  10.    
  11. it("products titles on the page should be Juvederm", () => {
  12. let product = $$(".product > div > h2 > a");
  13.  
  14.     browser.get(«…/advanced_search.html?keyword=juvederm");  
  15.  
  16.     product.each(function(element, index) {
  17.         element.getText().then(function(text) {
  18.             if(text.indexOf("JUVEDERM®") !== -1) {
  19.                     console.log(«Passed»);
  20.             }else{
  21.                     console.log("NOT PASSED");
  22.             }
  23.        });
  24.     });
  25. });
  26.    
  27. expect(order.product.getText()).toEqual(text);
  28.    
  29. JUVEDERM® HYDRATE™ Europe toEqual JUVEDERM®
  30.    
  31. browser.wait(() => {
  32.     return EC.textToBePresentInElement(order.product);
  33.     }, 3000, "ASDF");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top