Encountering an error while attempting to conduct a load test in Azure using the Selenium Chrome driver

While conducting a Load test locally, everything runs smoothly. Chrome opens and performs the necessary actions without any issues. However, when attempting to run the test online in Azure, an error is encountered:

The Initialization method SeleniumWebLoadPoc.SelenumLoadWeb.SetupTest threw an exception. System.InvalidOperationException: System.InvalidOperationException: unknown error: cannot find Chrome binary (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9), platform=Windows NT 6.3.9600 x86_64).

I have added the Chrome driver to deploy in test settings, following this link: Test settings deploy

I have followed the instructions provided in the Microsoft guide:

Is there anyone who has successfully conducted load tests in Azure with Selenium Web Driver? How can I resolve this issue?

Answer №1

In my opinion, it seems like they only endorse PhantomJsDriver and not ChromeDriver. Here is a snippet from their code samples:

 _driver = new PhantomJSDriver();

It is likely that the user interactions on the testing servers are also disabled.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Selenium in Python failing to check the checkbox

Why am I encountering difficulty in selecting the checkbox on the webpage using Selenium with Python? import traceback import selenium.webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as ...

Tips for interfacing with Angular ColorPicker elements using Selenium WebDriver

Is there a way to automate interactions with Angular ColorPicker components using Selenium WebDriver? Since there is no text field input for hex codes, it relies solely on mouse clicks. For reference, you can check out this example: https://www.primeface ...

Java Selenium WebDriver encountered an exception: The error is unknown and is related to a missing 'value' in the function result

Help needed! I'm encountering an exception when attempting to run my first Selenium WebDriver test case in Java. Can anyone assist? Thanks! Starting ChromeDriver 2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f) on port 48523 Only local connecti ...

Encountering an Issue with Python Selenium when Trying to Retrieve the 'href' Attribute

Could someone please assist me with extracting the href from a link? Here is my code: url = 'http://money.finance.sina.com.cn/bond/notice/sz149412.html' link = driver.find_element_by_xpath("//div[@class='blk01'])//ul//li[3]//a[contains( ...

Encountering a problem with app configuration when executing Appium code

Configuration Error: @BeforeTest setUp org.openqa.selenium.SessionNotCreatedException: Unable to establish a new session. (Issue: No app selected; make sure to start appium with --app or specify an 'app' value in desired capabilities, or set andr ...

How can I verify text modifications of an element using WebDriver and page objects?

Having some trouble with this topic, I'm stuck on how to assert that a text is shown after clicking a button in my page object class: By job = By.xpath("//input[@id='job0']"); public Page triggerJob() { wait.until(ExpectedConditions.pr ...

Guide on deactivating the HTML drawer layout on a website with Selenium using Java

I am currently working on automating a website and I have encountered a challenge with a drawer Menu Panel. My goal is to open the menu, verify certain elements within it, and then close or hide it. However, I am facing difficulty in closing/hiding this d ...

Selenium Chromedriver seems to be spawning numerous instances despite the need for just one

As someone new to Selenium and still in the learning process, I apologize if I come across as naive. We are currently trying to execute our Selenium tests on a specific machine through IIS. Strangely, when running the code locally, everything operates pe ...

What is the best way to use CSS to target and select the first option in a dropdown menu?

Currently, I am in the process of setting up my automation framework using Cucumber, Selenium, and Ruby. As part of my initial test, I need to fill out a form to progress to the next step. This form includes a dropdown menu with multiple values, and I need ...

The PyCharm IDE issued a warning indicating that it was anticipating the type 'WebDrivers' but received 'iPhoneTests' instead

I've been able to get my script working, but I'm encountering a warning that I'm unsure how to resolve. I am using PyCharm as my IDE. https://i.stack.imgur.com/zbNmx.jpg test_GoogleSearch.py from selenium.webdriver.common.by import By impo ...

Ways to incorporate several source folders to your pom.xml file

I encountered an error stating "package org.testng.annotations does not exist" while attempting to compile multiple source directories using Maven. In my case, I am performing webdriver tests and all test files are importing import org.testng.annotations. ...

What is the best method for extracting all links from a webpage using selenium?

Currently, I am attempting to scrape a website using Python, Selenium, and Beautifulsoup. However, when trying to extract all the links from the site, I keep encountering an issue with invalid string returns. Below is my current code snippet - could some ...

How can we most effectively test XML responses?

When it comes to testing webpages with xml responses, using Selenium IDE can be a challenge. While some opt for Selenium Remote Control or Pearl modules like WWW::Mechanize and Test::XML/Test::XPath, these may not be feasible options for those who prefer J ...

Tips for chaining actions in Javascript using ActionSequence, LegacyActionSequence, or a similar method

I encountered an error while attempting to execute this example, despite trying both ActionSequence and LegacyActionSequence. I am in search of the correct method to chain actions. My attempts to find a solution in resources such as https://seleniumhq.git ...

Encountering a null pointer exception when attempting to declare a WebElementFacade within a page object

While attempting to implement the page object model in Serenity BDD, I encountered a null pointer exception when declaring WebElementFacade in my page object. Below is the code for my page object class: package PageObjects; import net.serenitybdd.core.an ...

Struggling to get Protractor (ng e2e) to function properly on Azure - running into the error message "Module ./app-automate not found."

I'm currently facing an issue while attempting to execute testing on my project in Azure using e2e. Upon running "ng e2e", I encountered the following error message: Error: Cannot find module './app-automate' The commands that were run ...

Using the following-sibling selector in Java, you can easily click on all <li> elements within a <ul> tag

I am trying to navigate through the list of li elements starting from the "Mentorship" tag link <ul _ngcontent-cwp-c18="" class="navigation clearfix"> <li _ngcontent-cwp-c18="" routerlinkactive="current" ...

Exploring all Azure assets with NodeJS

I've been working on using the Azure SDK for JavaScript to list all resources within an Azure subscription. My current approach involves authenticating with the @azure/ms-rest-nodeauth package and then utilizing the ResourceManagementClient from the @ ...

What steps should I take to resolve the "You do not have authorization to access this directory or page" error in Azure App Services?

Currently, I am attempting to deploy my Next.js 13 application to AppServices using Github Actions. The compilation process on Github was successful, however, I am encountering an issue where my application does not seem to be deploying or starting up prop ...

Maximizing the Benefits of Scrapy's Concurrency Using Non-Selenium Requests

Currently facing an intriguing challenge while developing a Scrapy web scraper for extracting products from a website. The obstacle lies in the fact that the catalog pages on the site utilize lazy-loading, restricting me to gather only the initial 12 items ...