Questions tagged [browser-automation]

By utilizing browser automation, individuals can program a web browser to carry out repetitive tasks automatically or on demand. This tool is commonly used for activities such as completing forms, extracting information from websites, and providing login credentials to different online services. Additionally, browser automation is frequently employed to streamline the testing process of web applications by allowing the same tests to be conducted multiple times across various browsers in order to ensure proper functionality.

Using Visual Basic for Applications to automate Edge Browser without the need to install Selenium

Previously, I developed Automation tools specifically for Internet Explorer. Now, I need to update these tools to work with "Microsoft Edge" as the default browser. My initial research led me to download the WebDriver included in the Selenium Package. Is ...

`In Selenium using Python, the browser window opens a URL but abruptly closes``

On opening the Facebook page in the browser, I am encountering an issue where it fails to click on the "Create New Account" button as expected. I have used the following XPATH for locating the Create New Account button: //a[text()='Create New Account'] Ot ...

Can you invoke a class within a switch statement in C#?

This is an example of C# selenium webdriver automation. A script has been developed in C# to run and generate a report on a webpage. There are 10 different links that the user can select to create a report within the page. To replicate this for 10 other li ...

Installing the Firefox WebDriver Extension for Selenium WebDriver: A Step-by-Step Guide

After successfully setting up a browser automation project using Selenium WebDriver on one machine, I encountered issues when trying to run it on another. The browser (Firefox) opens but the automation does not happen as expected. Upon timing out, an error ...

Page Object Model Concerns in Designing

Could there be something wrong with our POM approach? It seems that the pattern commonly used in examples on the internet results in test scripts looking like this: pageObject.doSomethingWithElement(parameters...) However, we find it more natural to stru ...

What are some effective techniques for developing a script to automate a straightforward task with selenium?

Hey there! I'm just starting out on my coding journey and I have a cool project idea. I heard about this guy who wrote a script to send a text to his wife when he was working late, and I want to do something similar. Basically, I need a script that can lo ...

What are the top strategies for streamlining your Instagram automation process?

Recently, I have delved into the world of Instagram automation in hopes of finding a way to automate likes and comments. After thorough research, I have compiled a list of possible solutions: One option is to utilize a browser automation library such a ...

Should I simply open the URL or navigate to a page when creating end-to-end selenium tests?

Suppose I want to enroll in a class on the 'Courses' page. I am testing the functionality of enrolling in classes. Should I access the page by clicking on the menu bar, or should I directly enter the URL of the page? ...

Obtaining the Id token bearer through selenium webdriver - a step-by-step guide

Is there a way to retrieve the id token bearer post-login using selenium webdriver or another framework? Any suggestions would be appreciated. Thank you! ...

Serenity BDD does not have the capability to capture screenshots using appium

Having an issue with Serenity BDD and the Screenplay Pattern in combination with Appium 1.3.1. The problem is that the project is not generating screenshots for each step, resulting in the report not displaying the captures of the steps. Despite no errors ...

What is the method for inputting text into a textbox during automation testing?

I am currently testing out c# with selenium on the website . One of the first steps is to log in to the site. To do this, I located a button named "Вход" in the top right corner using xpath and clicked on it. After the page refreshed and changed, the ...

How can I set up automated OTP verification using Selenium WebDriver and Python?

When logging in with a mobile number on the website, I am prompted to input an OTP. Is there a way to automate the process of retrieving the OTP from the database for login? ...

I encountered a selenium chrome webdriver error: An exception was thrown in the main thread, displaying the message "org.openqa.selenium.SessionNotCreatedException: Unable to initiate a new remote session

I encountered an error while trying to run Selenium on Chrome, it said: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. Any advice on how to resolve this issue? The full error message is provi ...

Error encountered while using Selenium's By.className() method: IndexOutOfBoundsException - Index: 0, Size: 0

Currently, I am developing an automation tool for a website where the HTML elements do not have IDs. I have heard that xPath and CSS Selector may not be as efficient, so I decided to switch to By.className(). However, I encountered some issues with this ap ...

Obtain the Id or Xpath from a collection of elements in order to access it based on a variable

Categoriesemphasized text Hello Everyone, I am working with a String variable in Python that represents one of 14 categories (electronic, clothes...). My goal is to interact with a specific element on a website that matches my variable. All the categorie ...

Exploring WebdriverIO: Mastering the Art of Iterating Through Elements Sharing Common Select

When using webdriverIO to retrieve an array of checkboxes within a specific div id, I utilized the following code: browser.elements('div[data-test-id="filter: inventory source"] input[type="checkbox"]').value; The result is as follows: [ { ELE ...

Encountering an unidentified issuer error code (SEC_ERROR_UNKNOWN_ISSUER) while using Python Webdriver with Firefox profiles

I've searched all over the internet but am still struggling to fix the error I encountered while attempting to run a test script on my testing environment. "The certificate is not trusted because the issuer certificate is unknown. The server migh ...

Issue encountered with Selenium WebDriver in C#: Unable to successfully click on a hyperlink within a frame

Currently, I am utilizing Selenium Webdriver for automation in C#. Within my application, upon clicking on a specific link, a frame is opened on top of the main browser window. I am able to successfully read text within that frame and switch to it as neede ...

Issue with Katalon Studio on Mac: It is unable to click a button and instead tries to click the HTML parent tag

In my Katalon Studio script, I have a button click command that uses scrollIntoView to bring the button into view before clicking it. ((JavascriptExecutor) functiondriver).executeScript("arguments[0].scrollIntoView({block: \"nearest\"});", butto ...

Locating and identifying visible elements on a web application with Selenium

I am struggling to locate visible elements on a web application page using Selenium. Specifically, I need to identify a clickable row and then click on it. The challenge lies in the fact that these elements are dynamically generated and do not appear in ...

Handling alert, confirm, and popup events in C# using Selenium

Despite extensive research, I have yet to find a solution that addresses the specific issue at hand. Our team is utilizing Selenium with C#. The main problem we are facing is our inability to control alerts, which may be due to their quick disappearance: ...

Executing a test script across various URLs and different browsers locally using Selenium with Python

I need assistance with running a test script on multiple URLs using both Chrome and Firefox browsers locally on my machine. Each browser must open all the specified URLs in the test script. I have successfully run the test script for multiple URLs, but I a ...

Utilizing a Variety of Locators in Selenium WebDriver for Element Identification

Is there a way to find an element on a web page using Selenium WebDriver with multiple locators simultaneously? I have two elements with the same ID but different values, so I need to combine both the ID and value in order to access them. What would be t ...