How to scroll web page UP or Down using Selenium WebDriver?

UI Test Automation

How to scroll web page UP or Down using Selenium WebDriver?

3 minutes readKey takeaways Scrolling is done through the JavaScript executor, since WebDriver has no native scroll command. scrollIntoView is more reliable than pixel offsets, which break on different viewports. Scroll before interacting with anything below the fold or the click may miss. If you want to scroll the page UP or DOWN with Selenium WebDriver in… Read more »

How to Measure CPU and Memory while Running a Load Test

Web Performance

How to Measure CPU and Memory while Running a Load Test

2 minutes readKey takeaways Response times alone cannot tell you whether the server is saturated or merely waiting. Watch the load generator too, since a saturated generator caps the test rather than the target. Correlate resource use with the load curve; the point where they diverge is the finding. In order to make sure that your application will… Read more »

How to install JMeterPlugins-Extras and JMeterPlugins-ExtrasLibs

Apache JMeter

4 minutes readKey takeaways Extras and ExtrasLibs are a pair, and installing only one is the usual cause of missing elements. The Plugins Manager handles the dependency, which manual jar copying does not. Restart JMeter after installing or the new components will not appear. JMeter is a powerful tool for performance testing, widely used by developers, testers,… Read more »

How to Clear Local Storage using Selenium WebDriver?

UI Test Automation

How to Clear Local Storage using Selenium WebDriver?

2 minutes readKey takeaways Clearing cookies does not clear local storage, so state survives between tests. Execute localStorage.clear() through the driver's JavaScript executor. Do it in setup rather than teardown, so a crashed test cannot leak state into the next. There are two options to interact with browser’s local storage: via javascript by creating your own methods… Read more »