Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-xs-12 col-sm-6 col-md-4 block_history_" style="">
- <section class="product">
- <div class="product__holder">
- <a href="https://www.cosmedicalsupplies.com/.html" class="product__category"></a>
- <h2 class="product__title">
- <a href="juvederm-hydrate.html">JUVEDERM® HYDRATE™ Europe</a>
- </h2>
- </div>
- </section>
- it("products titles on the page should be Juvederm", () => {
- let product = $$(".product > div > h2 > a");
- browser.get(«…/advanced_search.html?keyword=juvederm");
- product.each(function(element, index) {
- element.getText().then(function(text) {
- if(text.indexOf("JUVEDERM®") !== -1) {
- console.log(«Passed»);
- }else{
- console.log("NOT PASSED");
- }
- });
- });
- });
- expect(order.product.getText()).toEqual(text);
- JUVEDERM® HYDRATE™ Europe toEqual JUVEDERM®
- browser.wait(() => {
- return EC.textToBePresentInElement(order.product);
- }, 3000, "ASDF");
Add Comment
Please, Sign In to add comment