Questions tagged [automation]

Automation refers to a remarkable process in which a computer performs repetitive tasks or undertakes intricate and multi-step activities without the need for human involvement.

How to automate clicking multiple buttons on the same webpage using Selenium with Python

As a Python and Selenium novice utilizing chromedriver, I find myself in need of assistance. The task at hand involves a web page that is unfortunately restricted from being accessed externally. This particular webpage hosts approximately 15 buttons with ...

The functions in Webdriverbackedselenium are unable to interact with selenium commands

In my code, there is a method named test which consists of defining a Webdriver object as shown below: FirefoxProfile firefoxprofile = new FirefoxProfile(); firefoxprofile.setAssumeUntrustedCertificateIssuer(false); WebDriver driver = new FirefoxDriver(fi ...

Unable to display images in selenium without a title attribute

I have implemented a code to retrieve the src of images that do not have a title attribute, but it does not seem to be working as expected. The code currently displays all images without filtering for those missing a title. public void checkimagetitle() { ...

Having trouble updating the environmental variable file using newman in NodeJS when running multiple collections simultaneously

While running multiple collections in NodeJs using Postman, I encountered an issue with sharing the clientHandshakeToken variable set in the first collection across subsequent collections. Despite my attempts to use Newman for this purpose, the second coll ...

Unable to transfer data to /html/body/p within the iframe for the rich text editor

When inputting content in this editor, everything is placed within the <p> tag. However, the system does not recognize /html/body/p, so I have tried using /html/body or switching to the active element, but neither approach seems to work. driver.sw ...

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 - Struggling to locate elements that are undeniably present on the website

I started a fun side project to automate tasks on the website using Selenium to automatically complete all achievements. You can check out my code on GitHub: https://github.com/jasperan/pyfastfingers However, I've run into an issue with the login page: ...

Is it possible to make a GET request to a webpage that requires logging in without actually logging in first?

In my recent project, I was tasked with developing an automation script that could log into a website, navigate to a specific page, and download a CSV file. However, I encountered a challenge as the website's security measures prevented me from loggin ...

I am looking to create a for loop that will automate the process of clicking on multiple links and navigating back to the previous page

Below is the code I have written to achieve a specific task: my_list = WebDriverWait(driver, 20).until(EC.visibility_of_all_elements_located((By.XPATH, "//table[@border='1']//a"))) for option in my_list: option.click() WebDriverWait(drive ...

What is the best way to retrieve all "a" elements with the "title" attribute from a list item?

How can I retrieve the Title values of all the a tags? Below is the XML structure with a ulTopMenu that acts as a hover dropdown, and I am using Protractor. <ul id="ulTopMenu"> <li> <li> <li> <ul class="submenu"> ...

Instructions on selecting DIV dropdown values with Selenium when no <options> tags are present

I am having trouble retrieving the options displayed in a dropdown menu because I cannot find any listed options in the source code. The element looks like this: <div id="trigger-picker" class="x-form-trigger x-form-trigger-default x-form-arrow-trigge ...

Tips for verifying and controlling dropdown values using WebDriver?

Is there a way to check the status of percentage values in a drop-down, where some are enabled and others disabled? I am looking for a method to obtain the XPath of a specific value and determine if it is enabled or disabled. Click on the image below for ...

Encountered an Error with My Protractor Script - Object Expected

Currently, I am in the process of learning automation testing for an AngularJS application. However, I have encountered an "object expected" error on line 4, which is pointing to the first line of my script. describe("Homepage", function() { it("Navig ...

Is it feasible to execute an XHR request and display the result using Selenium?

Is it feasible to execute an XmlHttpRequest using Selenium/Webdriver and display the results in a browser window? If this is achievable, I would appreciate some guidance on how to do so. ...

Retrieving the text value from a specialized attribute

I have a custom attribute named upgrade-test="secondary-pull mktg-data-content in the snippet of code below: <section class="dvd-pull tech-pull-- secondary-pull--anonymous tech-pull--digital secondary-pull--dvd-ping tech-pull--minimise" u ...

Storing list values into variables in Selenium Webdriver: A step-by-step guide

https://i.stack.imgur.com/DJXfO.pngI am just starting out with selenium webdriver and I'm trying to figure out how to extract the value from a specific Ul class and then store it in a variable. Unfortunately, I haven't been successful so far. This is what ...

Automating IE with Selenium in a scheduled task using RC

Looking to automate a task with Selenium-RC without the need for the user to be logged in. The ideal scenario involves running Selenium as a scheduled task, launching IE and executing the script seamlessly. Is it possible to simulate user interactions wit ...

Troubleshooting Problems with Facebook Posts on Selenium WebDriver

I'm struggling to automate the process of posting on Facebook. My script is having difficulty identifying the textarea in our news feed accurately. Despite trying various selectors, including those recommended by Selenium IDE, I have been unsuccessfu ...

Tips for scrolling down within a webpage frame that is divided by dividers

Currently, I am in the process of automating a task that involves finding a list of elements that match a specific string. The webpage I'm working with does not have a scrollbar for the entire page, but only for the left pane where most operations are perf ...

From converting a path from a string to a WebElement

Currently, I have implemented the following method in my BasePage and I am looking to utilize this method in other pages as well. In this method, the parameter is currently set as (String xpathExpression). How can I modify it to accept a WebElement instea ...

Element could not be located using the specified x-path

The HTML element code is: <html> < div class="view view-text" style="text-decoration: none; top: 9px; width: 216px; font-family: Kiro-webfont,Helvetica Neue,Arial; font-size: 20px; font-weight: bold; text-align: center; color: rgb(255, 255, 255) ...

Identifying menu items using XPath is a crucial skill to have in web

I'm having trouble identifying the left side menu item using xpath. I attempted to do so by: mat-tree-node[class$='ng-star-inserted'].findBy(text "Financial Management") Unfortunately, this method didn't work and Selenium was unable to locate t ...

converting webdriver code into integers

I am attempting to extract variables 'a' and 'b' from this HTML code. Currently, I am working on creating an automation script using Python and Selenium. The task involves a math game website where users perform addition, subtraction, ...

Retrieve the XPath for a RadioButton that is wrapped within an INPUT tag and enclosed in a

I am facing an issue with the following code where I need to select a radio button based on the label of the button next to it: <div class="formclassname"> <input name="radiobutton" type="radio" class="classname& ...

The session does not support the 'css selector' Locator Strategy Exception error occurred when attempting to locate an instance of EditText using Appium in C#

Successfully opened my app using Appium in C#. Now, on the loginPage, I am trying to retrieve the EditText element in order to input the userName. I have attempted various methods, but they all seem to be causing issues. Here is a snippet of my code: pub ...

Utilizing a blend of UI script and personalized server-side scripts to initiate automated testing through TestRail

Many teams opt to run their automated tests separately from TestRail, usually through a continuous integration system, while using TestRail's API to input the test results. However, I am interested in initiating automated tests directly from TestRail ...

Limiting capture group options in Cucumber for dynamic parameters: A comprehensive guide

Currently, I am working on creating a test automation step-definition using Cucumber and WebdriverJS. The scenario involves validating certain actions based on different service methods. Scenario Outline : Validate functionality for different service metho ...

Exploring the transition from the elements tab to the network tab in Selenium Webdriver utilizing the '--auto-open-devtools-for-tabs' feature

When running selenium automation, I have utilized the '--auto-open-devtools-for-tabs' to automatically open the developer's console. However, it always opens in the Elements tab by default. Is there a way to switch to the Network tab or Cons ...

Tips for avoiding the need to provide the full directory path when using the subprocess library in Python

My issue involves a simple line of code that opens up a .exe file within the subprocess.call bracket. Each time I run the code, I have to provide the full path to the .exe file. Is there a way for me to avoid this by simply placing the .py file containing ...

The send_keys function in Selenium/Python does not seem to be recognized, as it appears as regular text instead

Here is the code snippet I am currently running: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service from selenium_stealth import stealth from selenium.webdriver.support ...

Unable to select dropdown menu on Safari browser using MacBook Pro

I am just starting out with automation and I'm having trouble clicking on a dropdown in my application using Safari Browser. The script keeps failing with an error message. Can someone please assist me? Error : An unexpected server-side error occurred wh ...

Run a Firefox Browser within a Docker Container for Selenium testing purposes

Currently, I am utilizing a Java Application to manage an automated GUI test on a FF-Browser using the Selenium WebDriver Library. This application fetches test cases from a database and runs them based on specified code logic. For example, when the appli ...

Troubleshooting Extent Report Issues in Parallel Testing

Here is the Reporting code I am working with: public class Reporting { private ExtentHtmlReporter extentHtmlReporter; private static ThreadLocal<ExtentReports> extentReports = new ThreadLocal<>(); private static ThreadLocal<Ext ...

Using Selenium in Java, you can click on an element if it exists, and if it is not found, simply move on

I am currently in the process of developing a script to test a JavaScript application on a website. While most of the code is complete, I have run into an issue. The purpose of the script is to modify a question on the website that utilizes numerous variab ...

Having trouble accepting cookies with Selenium in Python

Currently, I am attempting to conduct web scraping using Selenium in Python. However, my progress is hindered by a popup that appears when a new browser opens, prompting me to accept cookies. This interruption halts the scraping process. The popup displays ...

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 ...

ways to parse a JSON array within another JSON array in Java

My task involved extracting the type value and networkUsage download value from a dynamically generated list. Here is an example of the JSON Response I received: { "count": 2, "devices": [ { "name": "xyz ...

Tkinter becomes unresponsive when running Selenium tasks

It's my first time delving into Tkinter. I decided to write a Python script for saving my pictures from Facebook. I wanted to create a GUI using Tkinker, but encountered an issue where the window freezes when clicking the start button. The process st ...

Guide on extracting an email address from an iframe with Selenium and Python

Currently, I am using Selenium in Python to automate a task that involves extracting an email address and phone number from a modal window. The challenge I am facing is specifically related to retrieving the email address text since the modal content is co ...

What is the best way to operate multiple web browsers at the same time while they each carry out their individual automated tasks with distinct mouse curs

Currently, I have been utilizing python, selenium, and pyautogui to operate multiple web browsers carrying out distinct tasks with their respective mouse cursors on a variety of websites to replicate typical human interaction with websites. It appears that ...

Automated CI: Streamlining Development Workflows

As I prepare to embark on Continuous Integration (CI), I have a sophisticated automated verification system in place. However, my concern lies in the fact that the automation runs only after the developer code is pushed to the cloud multiple times througho ...

Is there a way to transfer my existing Chrome profile to Selenium for testing purposes?

I am seeking a way to utilize Selenium in conjunction with my existing Chrome profile, even if it is currently being used. My goal is to initiate Selenium automation that can recognize any cookies set in my current Chrome session and have the ability to mo ...

Using Selenium with Firefox to interact with span elements

Having trouble selecting an element by linkText within a span tag? It works in Chrome, but not in Firefox. The code I'm using is: login.wait.until(ExpectedConditions.elementToBeClickable(By.linkText("Kassa"))).click(); Other elements without the span tag w ...

Obtaining locator information from a WebElement and implementing it with the PageFactory

When designing my web application, I adhere to the Page object model by utilizing a Base class that contains all common and reusable methods, as well as separate pages for each page of the application. Currently, I am faced with the task of creating a met ...

Issue with TestNG version 6.14.2 has been identified in RemoteTestNG, and despite trying various Maven related solutions, the problem persists

I'm experiencing an issue with a simple code that navigates to a specified URL. Despite trying various solutions found on Stack Overflow, I have been unable to resolve the following error: Error: > [RemoteTestNG] detected TestNG version 6.14.2 or ...

Using arguments in cucumber scenarios

Is there any way to pass only one parameter in a cucumber step, even if the method expects two? Here is the code snippet: @Given("^skip the next scenario named "(.*)"$") @BeforeStep public void before(Scenario scenario, String name) { ...

Error message on Cypress with TypeScript: No test specification files detected

Encountering the error "Unable to run because no spec files were found, even though there is a .ts spec file in Cypress. Execute the command below in the terminal: npx cypress run --spec="./cypress/integration/specs/Test1.spec.ts". Attempted to run the t ...

Using Selenium WebDriver in Java to click on the Facebook sharing button for the specific post I am interested in

I'm struggling to locate and click the share button on a Facebook post. Let's say I have 4 posts displayed on my Facebook page, and I want to share one of them by clicking on 'Share' and then selecting 'share...' from a small ...

Unable to retrieve docx files with selenium in headless chrome

Currently, I am in the process of automating an end-to-end (E2E) task that involves downloading files from a drop-down menu. The functionality works flawlessly using chromedriver without the headless mode activated. However, when I enable Chrome options fo ...

Utilize Firebase for Playwright to efficiently implement 'State Reuse' and 'Authentication Reuse'

In my testing environment, I want to eliminate the need for repeated login actions in each test run. My approach involves implementing 'Re-use state' and 'Re-use Authentication', but I've encountered a challenge with Firebase using indexedDB instead of Coo ...

Reading a Json file with keys in puppeteer BDD: A Guide

Greetings, I am new to the world of puppeteer. I have successfully created my basic framework and now I am trying to figure out how to read data from .json files. I attempted to use the readFile method in my helper class, but unfortunately, it resulted in ...

Unable to navigate between windows in Webdriver using C# and CSharp

I'm facing an issue with switching windows using the latest version of Selenium WebDriver in C#. The scenario is that I have a base window, and upon clicking a button, it opens a new window. Here is the code snippet for opening the new window: window.op ...

Is the Selenium WebDriver disregarding the setTimeout command?

Has anyone experienced the issue where the selenium.setTimeout() command is being ignored when using WebDriverBackedSelenium? Any insights or solutions? ...

The WebDriver Manager for Selenium Automation is experiencing issues with the latest Chrome update, version 116

I implemented the selenium framework and included this dependency. However, I encountered an issue where the browser wasn't being invoked due to Chrome version 116. <dependency> <groupId>io.github.bonigarcia</groupId> <art ...

The challenge of maintaining focus in Internet Explorer while running Selenium webdriver scripts

Initially, I need to hover over the element to trigger a dropdown and then click on a specific link. This functionality works smoothly in Firefox and Chrome but encounters an issue in Internet Explorer. Below is the snippet of code being used: WebElement ...

What is the best way to instruct the protractor to pause until the webpage has completely loaded

My application is taking some time to load the login page, causing Protractor to attempt entering the username before the page fully loads. To resolve this issue, I need to instruct Protractor to wait until the login page is completely loaded. Can you ass ...

How to Click a Button Using Selenium without Specifying ClassName or ID

I am working on a project related to Browser Automation, but I'm encountering issues with clicking a specific button. I attempted the following steps: webDriver.FindElement(By.XPath("//*[@id='uploadForm: fileup']/div[1]/button[1]")).Click(); webDriver.Ele ...

What is the process for identifying the relative x path of a distinctive code?

There are 3 matching nodes with the same source code which is causing the failure: //img[(@src='/PHYLINSPortlet/images/override-0.gif')] <img id="_PHYLINSPortlet_WAR_PHYLINSPortlet_INSTANCE_o3P5_:form_PolicyContent_UI2:Messages:0:j_id1885:0:j ...

Just starting out learning programming, delving into Python to streamline tasks through automation

As a beginner in programming, I decided to delve into learning Python for automation purposes. My focus was on using Selenium to record type and key strokes on a web form. The challenge I encountered was the need for unique data each time I ran the test, s ...

Encountering a NullPointer Exception while attempting to locate a WebElement in the code

My current challenge involves locating a particular webelement with the code snippet below: private WebElement loc_Start; public void clickButton() { loc_Start.findElement(By.xpath("//button[contains(text(), 'Start')]")).click(); } Upon inspection, ...

The ChromeDriver capabilities that have been configured are not maintained once the WebDriver is constructed in Node Selenium

I am currently experimenting with adding the default download path using Chrome capabilities in my code snippet below: const test = async () => { let builder = await new Builder().forBrowser("chrome"); let chromeCapabilities = builder.getC ...

choosing a dropdown option using a div element in Selenium using C#

My dilemma lies with a dropdown used for selecting employees. Despite my efforts to automate the process, the list of employees within the dropdown does not appear in the HTML code until one is actually selected. This poses a challenge when attempting to u ...

Exploring Checkbox Limiting with jQuery

Is there a more efficient approach to restrict the selection of checkboxes? I want the script to be adaptable depending on the applied class, which will always indicate the maximum allowed value (e.g., "limit_1" or "limit_2"). Currently, I'm creating a f ...

Guide to sending an Array of objects in the request body using RestAssured in Java

Here is the Request I am working with: [ { "userId": "value1" },{ "userId": "value2" } ] I attempted to create a POJO class and construct the request, as well as using an ArrayList, but there ...

The issue of stable diffusion web automation in Selenium Python is currently not functioning as expected

Having some trouble automating stablediffusionweb with python selenium, encountering an error: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"input.scroll-hide.sve ...

Challenges with Selenium testing and network timeouts

My current automation tasks using selenium are encountering issues with flakiness due to network problems like slowness. This has led to numerous failed test cases, and re-running them is proving to be quite time-consuming. As a result, the efficiency of a ...

Error encountered with Selenium script execution

As a newcomer to selenium, I require assistance with the following script where I am attempting to input a value via a text field. Below you can find the code snippet. import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import or ...

Newbie Python Programmer: How to Send Selenium WebElement Object to PHP

I am currently exploring the possibility of extracting data from a website and then passing it for use in PHP. After researching various methods, one suggestion that stood out to me was to serialize the Python data before transferring it. However, I seem ...

C# Selenium - Troubleshooting "Send Keys" Functionality for Downloading Files - Seeking Resolution

I have been attempting to automate the process of 'Downloading a File' using c# selenium in the IE9 browser. Despite my efforts to scour Google for answers, I have not found a solution that works. My current approach involves using 'send keys', but unfort ...

The anticipated condition was not met as we were waiting for the element located by the XPath to become visible

public class ProgramDemoQA { public static WebDriver d; public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "D:\\RamanaSoft&bso ...

Discovering xpath in Chrome Version 58.0.3029.81 (64-bit) can be done effortlessly with the help of xpathfinder. Unfortunately, the shortcut shift+ctrl+x

Having trouble locating the xpath in Google Chrome Version 58.0.3029.81 (64-bit) using xpathfinder. The shortcut shift+ctrl+x is not working for this. This xpath would be used with selenium 3.3.1 for automation testing. Your assistance is greatly appreci ...

Has the recent update to the latest Google Chrome version (Version 87.0.4280.66 (Official Build) (64-bit)) included a change where the "chromedriver.exe" process is now named "Google Chrome"?

In previous versions of the chromedriver software, I used to observe a process labeled as chromedriver.exe in my task manager. However, in the newer version (87), it appears that this process has been renamed to Google Chrome. As a result, I would typical ...

What is the best way to choose specific words within a Google document using Selenium WebDriver in either C# or Java?

Currently, I am experimenting with testing content in Google Documents using Selenium Webdriver. Some of my tests require selecting individual words within a Google document and then applying actions such as bolding the word or changing the font type. I w ...

Utilizing Selenium WebDriver to Locate Elements Using Relative XPath Based on Their Text Content

I am currently utilizing Selenium webdriver in conjunction with Java. My main challenge lies in identifying elements within dynamic dropdown lists, as accessing them by exact id/name/xpath is proving to be difficult. I have resorted to locating these elem ...

I'm trying to figure out how to scroll through the comments on a YouTube video, but I'm having

I'm currently working on creating a YouTube Scraper. I have successfully extracted the desired data from the video, but I am facing an issue with scrolling to the end of the comments section. Below is the code snippet that I have used: from selenium ...