How to Select a Dropdown in Selenium WebDriver using Java
Use the Select class for real select elements, and normal clicks for custom widgets.
Newest first. 315 load testing, JMeter, test automation and monitoring guides, plus tool comparisons. Browse by topic from the blog home.
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.
A test plan is about scope and risk: what you will not test matters as much as what you will.
Locate web elements in Selenium 4 with the Java By class: id, name, CSS, XPath and relative locators, with tested code and what selenium.dev recommends.
JMeter has no fixed thread limit: one machine's ceiling depends on CPU, heap and think time. How to measure yours, what breaks first and when to distribute.
JMeter for beginners: the six stages to learn in order, from test plan basics and a first request with an assertion to CLI runs, results and scaling out.
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.