Questions tagged [webautomation]

Involves automating web browsing tasks through programming.

Encountering a problem while creating a Page Object in webdriver.io - getting the error "setValue is not a function" or "cannot read property 'setValue' of undefined"

While working on a webdriver.io automation project, I encountered an issue with recognizing objects in my page object file (login.po.js) when calling them in the test spec file (test.spec.js). The error message displayed is LoginPage.username.setValue is n ...

Using selenium, you can easily download a file without needing the direct URL

I need assistance with using Selenium for website automation in Chrome using vb.net. I am trying to download files from a website that does not have direct URLs for download buttons, as the downloads are triggered by JavaScript. How can I accomplish this i ...

Unable to find element to click on "Join Now" button in Google Meet using Selenium and Python for browser automation

I am working on creating a web automation tool that can automatically join Google Meet using Selenium with the Firefox driver in Python. So far, I have successfully signed up, muted the microphone, and turned off the camera without any issues. However, I a ...

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

When loading a page with Puppeteer using the setContent method, images may not be loaded

Currently, I am experiencing an issue with Puppeteer where it does not load resources that are specified with relative paths (such as background.png in the image src or in CSS url()). When I try to load the content of a local file using setContent(), the o ...

I am trying to access an established profile on Chrome in order to navigate to a specific website, but I am encountering an issue with Chrome crashing and displaying error

An issue has been identified: The process started from the location C:Program FilesGoogleChromeApplicationchrome.exe is no longer running, leading ChromeDriver to assume that Chrome has crashed. Below is a code snippet: from selenium import webdriver ...

Having trouble clicking the Submit button with Python and Selenium

Currently, I am working on automating the extraction of data from Google search using selenium web automation. from selenium import webdriver import time import os #Opening google.com driver = webdriver.Chrome() time.sleep(2) driver.get("https://www.goog ...

What is the best way to locate and interact with this button using Python and Selenium?

The button we're looking for is labeled as the "View All Suggestions" Button. Therefore, a line of code should be written like this: browser.find_element_by_css_selector("something here").click() Remember, it doesn't necessarily have to be done by css. ...

Are you familiar with textbox interactions?

I have been utilizing Kantu to automate the process of completing various forms. One particular textbox is designed in such a way that when an individual's ID number is input and you click into another field or tab out of the box, it automatically loa ...

Selenium encountered a situation where Chrome abruptly shut down after successfully populating the form

I am currently using selenium and have encountered an issue where the chrome browser closes immediately after filling out a form. I would like to prevent this from happening as I want the browser to remain open. Below is my code: from lib2to3.pgen2 import ...

What is causing the Wait.until() method to not function properly in Selenium WebDriver?

Currently I rely on Selenium WebDriver for my testing needs. In order to wait for an element to be present on the webpage, I have implemented the following code snippet: WebDriverWait wait = new WebDriverWait(driver, Long.parseLong(timeout)); wait ...

Tips for utilizing the native search feature in a browser with Selenium

While attempting to find a specific URL: https://rewards.bing.com/pointsbreakdown using Selenium in Python, I wrote the following block of code: search_in_first = driver.find_element(By.ID, 'sb_form_q') search_in_first.send_keys(search_random_word()) searc ...

Which is better for a web automation bot in Python: Multithreading or Multiprocessing?

I have a script that continuously monitors the prices of specific products on nike.com. Once the price drops, it will automatically initiate multiple instances to log in and purchase the item from different accounts. While I already have the scraping and ...

Error: Selenium encountered an AttributeError stating that the type object 'By' does not contain the attribute 'id'

Currently, I am attempting to populate a dropdown form using Selenium. I have been trying to select the dropdown element based on its ID but encountered an error message stating: AttributeError: type object 'By' has no attribute 'id'. This error is being ...

Executing UI automation with Selenium and Java involves the automation of two separate Chrome browsers simultaneously

I currently have 3 classes structured like this: `public class SubmitOrderTest extends DefaultTest { @Test public void submitOrder() { LandingPage landingPage = launchWebsite(); landingPage.login("standard_user", "secret_sauce" ...

Issue with searching on Github because search bar element is not interactable

Currently, I am working on a project using Selenium to develop a simple code that will launch the browser and navigate to the GitHub website. The main objective is to search for a specific keyword in the search bar. However, upon running the code, I encoun ...

What steps can be taken to locate an element by its link text even when encountering a NoSuchElement Exception?

Despite numerous attempts and hacks, I am still struggling to identify the issue in this recurring question. I have increased the implicit wait time to 30 (and even tried up to 100) without success. Use case -: My goal is to compile a list of all items o ...

If a website undergoes changes to its user interface, can the selenium web automation still function effectively?

I have developed an automation script using Selenium in Java. I am curious to know if the code can still function properly even if there are changes made to the website's user interface. If the script is rendered ineffective after updates, is there a meth ...

Automatically press a button that appears on the webpage

I am looking to automate the clicking of a button that appears on a website. How can I accomplish this using Python? I have no experience in JavaScript and am fairly new to programming. Here is the outer HTML code for the button: <button type="button" ...

Attempting to engage with the n CAPTCHA feature by clicking on it

So, I’ve been attempting to submit a form on this website: However, when I encounter the reCAPTCHA challenge, my code to click on it doesn’t seem to work: checkbox=WebDriverWait(driver,20).until(EC.element_to_be_clickable(By.XPATH,'//*[@id="recap ...

Execute automated processes on a headless browser within an EC2 instance running Amazon Linux

In my automation framework, I utilize static HTML pages stored within the project directory to execute various AWS operations like DynamoDB scan and AWS Lambda executions. However, we are encountering performance issues with a dependent API component in ou ...