Find all the Links on a Webpage with Selenium WebDriver in Java
Find all links on a page with Selenium WebDriver in Java: findElements(By.tagName("a")), filtering hrefs, checking status codes and avoiding stale elements.
Newest first. 319 load testing, JMeter, test automation and monitoring guides, plus tool comparisons. Browse by topic from the blog home.
Find all links on a page with Selenium WebDriver in Java: findElements(By.tagName("a")), filtering hrefs, checking status codes and avoiding stale elements.
Why a GET or POST request returns 500 Internal Server Error: a body the server cannot parse, missing headers or cookies, exhausted pools, and how to debug it.
Hover needs the Actions class; a plain click will not trigger CSS or JS hover states.
Which Selenium locator is fastest? A measured test of By.id, name, CSS and XPath in Selenium 4: XPath costs a few ms more, and stability matters more.
Use the Select class for real select elements, and normal clicks for custom widgets.
How to add User Defined Variables in Apache JMeter, reference them with ${name}, override them from the CLI with -J, and keep environments in one place.
Start Apache JMeter from the command line with -n -t -l -e -o, why GUI mode skews results, and how to run the same JMX at scale in the cloud.
Selenium 4.2+ scrolls natively with wheel actions (scrollToElement, scrollByAmount); the JavaScript executor scrollBy and scrollIntoView work in every version.
gzip on NGINX is a few lines of config and usually the cheapest bandwidth win available.
Use JMeter's XPath2 Extractor to pull values from XML and SOAP responses, map namespaces, and see why XPath on HTML returns your default value. Tested on 5.6.3.
Assert on content as well as status, since a wrong body is still a failure. Keep assertions cheap. Heavy ones distort the timings you are measuring.
JMeter load testing step by step: install JMeter 5.6.3, build a test plan, run it in CLI mode, read the HTML report and scale past one machine to the cloud.
Decide what you are measuring and why before configuring anything. Choose the metrics up front, or you will report whatever looks best afterwards.
Chrome DevTools can copy an XPath, but the generated one is usually position-based and brittle.
The Select class exposes getOptions() for real select elements. Assert on the option text or value, not the count alone, which passes on the wrong list.
Log each JMeter virtual user in with credentials from a CSV file, extract the token from the login response with a JSON Extractor and send it on later requests.
Response times alone cannot tell you whether the server is saturated or merely waiting.
JMeterPlugins-Extras and ExtrasLibs stopped at 1.4.0 in 2016. Get their graphs, samplers and JSON tools through the JMeter Plugins Manager, plugin by plugin.
Clearing cookies does not clear local storage, so state survives between tests. Execute localStorage.clear() through the driver's JavaScript executor.
Screenshots on failure turn an unhelpful stack trace into something you can diagnose. Name files by test and timestamp or you cannot match them to runs.
A proxy lets you inspect, record or modify the traffic a browser test generates. HTTPS needs the proxy certificate trusted or every request fails.
JMeter distributed testing step by step: start jmeter-server on each worker, set up the RMI keystore and ports, run with -R and size threads per worker.
Combine a large HTTP load with a small number of real browser sessions. Watch client-side metrics, since the server can be fast while the page is not.
HTML5 apps can be debugged with remote browser tooling; native apps need a proxy or device logs.
Don’t miss out on the latest testing tips and tricks, tools and news related to software testing.
Already +20,000 members in the list.
Load test websites and APIs from 25 cloud regions, monitor page speed and uptime, and get AI analysis that explains your results in plain English.