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.

Automate downloading files from Internet Explorer and saving them to a specified directory using AutoIT

I am facing a requirement to download a file from Internet Explorer 11 and save it to a specific location using Selenium and AutoIT. The path where the file should be saved is provided through the command line. Below is the code I have implemented: ; Get ...

The RemoteWebDriver is currently unable to upload the file

Having trouble uploading a file on a demo site using RemoteWebDriver? You’ve successfully done it with the regular WebDriver driver, but now facing issues with RemoteWebDriver. The exception thrown is :"org.openqa.selenium.WebDriverException: Settin ...

Steps for clicking on a dynamically moving element in real-time on a canvas

On my web page, I have a canvas element that contains an area where a certain value appears. When this value meets specific criteria, such as equaling 10 (see green line in example image), I want to be able to click on a separate element, like a button wit ...

What can be done to continue execution even after assertion failures occur?

When using Selenium WebDriver with Java and TestNG for automation, I encounter situations where there are multiple assertions within a test method. If one of these assertions fails, the execution is halted. My goal is to have the code continue executing e ...

Having trouble finding elements for the Date field in automation using Selenium and Python

I am currently working on automating tasks on Expedia.com, and I have outlined the following steps: Visit Expedia.com Click on the Flights button The default option will be set to Round trip Select a value from the Leaving from dropdown menu Select a valu ...

Are you familiar with the guidelines for automating Instagram?

Looking to develop an Instagram follower bot as a service, but unsure of the rules governing actions such as delay between clicking on the follow button or limits on accounts per IP address. Can anyone provide insight into these rules or suggest where I m ...

Automatically Trigger Setup Upon Download Completion [PHP]

When you go to https://www.google.com/chrome/browser/#eula to download Google Chrome, the setup file starts automatically after clicking the accept & install button. I am wondering if it is possible for me to open a file on the user's pc in the same w ...

When the button is clicked, automatically sync data from a website to update a Google Sheets spreadsheet

I am a frequent Betfair user and I meticulously track my bets in a Google Sheets spreadsheet. The manual entry of bet information is time-consuming. I am exploring the idea of automatically extracting bet details from the Betfair website when clicking on ...

What is the process for clicking a button in Selenium Python that lacks a "select" tag and only becomes clickable after fulfilling certain conditions?

Currently, I am working on automating the process of downloading files. To locate these files, I need to interact with two dropdown menus: one named 'Select Period' where I choose a date, and the other named 'Select File Type' where I select 'All Types'. I ...

Tips for interacting with the window element (for uploading files) via Selenium in Jenkins

In my automation tests, I am using Java and Selenium to perform tasks. One specific test requires uploading an image from the computer. To achieve this, I have utilized the Robot object to identify the upload window and specify the file path. Interestingly ...

Protractor - Issue with clicking on hidden element with "ng-click" attribute

I'm facing an issue with a specific element that I am unable to click using Protractor. Everything was working fine until a few days ago. Technical information: Chrome version: 47.0.2526.106 Protractor version: 2.0 Selenium version: 2.44 CSS <but ...

Choosing a clickable date from a calendar in Selenium using Java with two dates displayed

While attempting to select the 29th of February on a bootstrap calendar, I encountered an issue where the debugger tried to select the 29th of January, which was disabled or inactive. This led to a response indicating that the element was not clickable. T ...

Checking for URL redirection in Selenium automation can be done with the following steps

Attempting to automate the verification of top navigation links on . https://i.stack.imgur.com/Mt6Zw.png When comparing actual URLs with expected URLs in the page class method, the line below returns null. I'm not sure why. String urlp = locator.all_topn ...

TestNG is failing to run after the setup

What could be the issue in the code that is preventing it from running? Please provide guidance on how to resolve this. package tc1; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org ...

Learn how to temporarily halt your Selenium WebDriver script to handle CAPTCHA verification, before resuming script execution seamlessly

Currently, I am working on a webpage automation project that requires the user to enter credentials and then manually fill out a CAPTCHA. Here's the plan: The script will pause at the CAPTCHA input The user must manually complete the CAPTCHA verificatio ...

Ways to discover the present date and transition to the following date?

Currently, I am encountering an issue with my automation script. My script utilizes the selenium tool along with Java language. The specific problem I am facing involves the need to view the current date after clicking on a calendar and verifying if a flig ...

Guide for retrieving input from a URL using Python

I have a hyperlink that includes email addresses and I am interested in counting the number of emails with the same domain. The input needs to be taken from the URL provided. import requests def finddomains(input_): domain_frequency = dict() ...

Unable to execute SikuliX scripts via Command Line on Mac operating systems

I'm currently using MacOS 10.11.6 and I seem to be facing an issue with the SikuliX command runsikulix, which according to the guidelines mentioned here, should be available after installation. However, I couldn't locate it as expected. Could any ...

Downloading files automatically from a webpage

Seeking a way to automatically download a file from a website, as the current manual process is cumbersome. Each time involves logging in, navigating to the file, and clicking download. If anyone has advice on automating this task using tools like MS DOS ...

Creating a global method in Python allows you to define variables that can be accessed and used across multiple methods within the same

I am currently working on a project involving automation. Specifically, I am automating the login process for a website. The issue I have encountered is that the login fails the first time, even with correct credentials, but succeeds on the second attempt. ...

What is the best way to choose a specific passage from a lengthy piece of text?

Upon completing the registration process on the website, I am sent my login credentials via email in the following format: some text / login: [email protected] / password: example123 / some text I am struggling to extract and copy just the l ...

Guide to using Python for automating the process of clicking on an email link to retrieve data

I'm attempting to access a specific email from my inbox and need to click on the 'Click here' hyperlink in order to download an Excel file onto my laptop. Here's the code I've been working with: import smtplib import time impo ...

Preventing Selenium from immediately exiting and addressing issues with keys not being typed

Is anyone else experiencing the issue where the site opens for a split second and exits, and it doesn't type what it's supposed to? How can this be fixed? I've tried multiple methods to locate the element, and I believe my approach is correct. Please corr ...

Executing a recorded Appium test

Recently, I decided to delve into the world of Appium. After installing the Appium app and adding the simulator app file, I launched the simulator using the "launch" command, following the steps outlined here. I successfully recorded a test on my app and ...

Exploring the power of AutoIt in iterating through a JSON array

I'm in need of assistance with automating a script to loop through an array and return a specific value from each object. [{"var1":"test1","var2":"test1"},{"var1":"test2","var2":"test2"},{"var1":"test3","var2":"test3"}] My goal is to extract the var ...

Having trouble getting the XPath selector to function properly with the Robocorp Selenium library

For my web automation project, I am utilizing Robocorp along with the Selenium library. Everything runs smoothly until I reach a particular page where I need to click on an icon labeled SQL. I specifically require the <a> element with the @href att ...

Discovering WebElements: The key to effective web development

Our automation process currently relies heavily on @FindBy with Selenium/WebDriver/Java. This includes: @FindBy(css="a[name='bcrumb']") protected List<WebElement> breadCrumbLinks; @FindBy(id="skuError") protected WebElement skuE ...

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

Optimizing the process of inputting the date, month, and year into separate dropdown menus

I'm new to automation and facing an issue with efficiently inputting date, month, and year from three different dropdowns with unique xpaths. I want to streamline this process without using the select class for each dropdown. Here is the sample code : pa ...

Utilizing variables for Protractor command line parameters

I am struggling to make variables work when passing parameters as a string in my code. Conf.ts params: { testEnvironment: TestEnvironment.Prod, }, env.ts export enum TestEnvironment { Dev = 'dev', QA = 'qa', Prod = 'production', } ...

Is it possible to navigate to an iframe within an iframe after resetting to defaultContent()?

Why does my webdriver throw an exception when I try to switch to a frame(2) inside a frame(1) after using driver.switchTo.defaultContent()? Removing this line allows me to find the frame(2). Can someone clarify why this behavior occurs? driver.switchTo().d ...

Using Python with Selenium to automate printing in Chrome

Season's Greetings and Happy Holidays! I have developed a script that automates the process of opening a webpage in Chrome, logging in, navigating to a specific page, and then attempting to print it. However, I am encountering difficulties when trying to ...

Cucumber experiencing issues in @before hook: NoClassDefFoundError

The automation framework is facing an issue where it does not proceed with executing steps in the .feature file after opening the Chrome browser, which then closes abruptly. Code Snippet from GenericStepImplementation.java: @Before public void setUp() th ...

Is it recommended to have a single repository for iOS and Android when creating automation for mobile applications (Native App)?

At the moment, I am utilizing Appium, Selenium, Java, and TestNG for automating a native app. My focus is on iOS and Android platforms, where the functionalities are similar but the element identification process differs between the two. Each element has a ...

Image capture by automation

I'm in the midst of a project automating tasks, where I have designed a basic program to generate testing reports and capture screenshots. package ReportTest; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; im ...

Having trouble resolving issues with Selenium's Java WebDriver and ChromeDriver?

Hello! I'm encountering an error even after adding all the necessary jar files to the classpath. I have an interview coming up on Monday, so I really need to resolve this issue as soon as possible. My Java version is 21 and Chrome version is 122. Can anyo ...