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 ...
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 ...
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() { ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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"> ...
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 ...
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 ...
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 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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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) ...
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 ...
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, ...
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& ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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) { ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Has anyone experienced the issue where the selenium.setTimeout() command is being ignored when using WebDriverBackedSelenium? Any insights or solutions? ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
public class ProgramDemoQA { public static WebDriver d; public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "D:\\RamanaSoft&bso ...
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 ...
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 ...
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 ...
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 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 ...