Reputation: 31
I want to open EDGE browser through JMeter. All other browsers have specific config element present within JMeter. But Edge does not have any & I want to use the edge browser.
Upvotes: 2
Views: 2286
Reputation: 1991
Updated: To invoke the EDGE browser through a WebDriver in JMeter follow this steps:
jp@gc - WebDriver Sampler
to your test planjp@gc - Internet Explorer Driver Config
to your test planInternet Explorer Driver Config
and open an Internet Explorer
tabAlso you may just simulate EDGE browser without WebDriver
User-Agent
header with one of Edge User Agent strings to HTTP Header ManagerSome strings for example, chhose nay one to simulate EDGE:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
User-agent strings for Microsoft Edge
Microsoft Edge for desktop and mobile in Windows 10 and RemoteIE builds is designed for maximum interoperability with other modern browsers and contemporary web content. The desktop, mobile, and WebView user-agent strings are below.
Desktop:
Mozilla/5.0 (Windows NT 10.0; <64-bit tags>) AppleWebKit/<WebKit Rev> (KHTML, like Gecko) Chrome/<Chrome Rev> Safari/<WebKit Rev> Edge/<EdgeHTML Rev>.<Windows Build>
Mobile
Mozilla/5.0 (WM 10.0; Android <Android Version>; <Device Manufacturer>; <Device Model>) AppleWebKit/<WebKit Rev> (KHTML, like Gecko) Chrome/<Chrome Rev> Mobile Safari/<WebKit Rev> Edge/<EdgeHTML Rev>.<Windows Build>
Microsoft EDGE User-agent string changes
Upvotes: 1
Reputation: 168092
Currently WebDriver Sampler plugin doesn't support Edge browser, you can reach out toJMeter Plugins developers and maintainers and clarify is the feature on the roadmap and if/when it will be implemented.
In the meantime you can still launch Edge browser from JMeter using JSR223 Sampler and Groovy language
Make sure to install JMeter WebDriver plugin. The below instructions assume Selenium/WebDriver Support plugin version 3.0, it can be installed using JMeter Plugins Manager:
selenium-edge-driver-3.14.0.jar
and store it under "lib" folder of your JMeter installationMicrosoftWebDriver.exe
for your Edge version and put it under "lib" folder of your JMeter installationPut the following code into "Script" area:
System.setProperty("webdriver.edge.driver", "../lib/MicrosoftWebDriver.exe");
def driver = new org.openqa.selenium.edge.EdgeDriver()
driver.get("http://jmeter.apache.org")
Upvotes: 3