using protractor I would like to first set focus on a left pannel in my web page then scroll down in order to click on a filter. Any idea how to do this using protractor syn
You can use this too: browser.executeScript("arguments[0].scrollIntoView();", basePage.faqText.getWebElement());
browser.executeScript("arguments[0].scrollIntoView();", basePage.faqText.getWebElement());
I does the magic in one line.
basePage.faqText is the element that I want to scroll here.
basePage.faqText