My primary webpage consists of multiple links, including one that triggers a modal when clicked on. This modal opens on top of the main page, allowing me to compare expected and actual links. However, I encounter difficulty in comparing the rest of the lin ...
I am encountering an issue with my page where I need to input scores for 16 different rows that are automatically generated. When I try to insert scores into each row using a for loop, the code works fine for just one row but fails when I attempt to run it ...
I am currently facing an issue with verifying and dismissing alert text in my code. Despite following the steps to verify the alert text, I encountered failure. WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions. ...
Website myList = ['Artik'] How do I verify if the content of myList is visible on the mentioned website? <span class="ipo-TeamStack_TeamWrapper">Artik<span> This specific webelement showcases 'Artik' in the given websi ...
When selecting a scraper for a specific URL, I often encounter issues with BeautifulSoup not being able to scrape JavaScript protected pages. In these cases, I resort to using Selenium instead of BeautifulSoup. What I am interested in is how to determine ...
I have a simple query that I've been struggling to find an answer for. Every time I try to close my Windows Form with the Selenium Chrome Web driver running, it shuts down the application but leaves the Chrome console and browser open. Is there a way ...
After numerous attempts to scrape the website, I am faced with the challenge of not being able to locate the text in my pages indexing variable. Even though the pagination length is displayed correctly, indicating that the desired element has been found, t ...
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 ...
Details Firefox version: 45.0.2 Selenium: selenium-java-2.53.1 (experimented with selenium-java-3.0.0-beta2 too) Script package Selenium_Practice; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDri ...
My friend was asked this interview question that I am not sure about the answer. Can anyone help me out? Question: "How do you interact with a button that is within a div tag without using XPath?" Thank you, Mahesh ...
Recently, I started familiarizing myself with Winium tool and encountered an issue when running the code below: public class CalcDemo { public static void main(String[] args) throws MalformedURLException { DesktopOptions options=new DesktopO ...
I am tasked with automating a WebTable that is embedded in the WebPage. The table contains numerous fields, causing it to have its own horizontal scrollbar separate from the rest of the WebPage. As a result, when attempting to interact or click on elements ...
I am encountering difficulties using webdriver.Chrome in a project I am working on. Despite installing the correct version of Chrome, I keep getting this error. I'm lost and unsure how to proceed. Can anyone provide insight into what might be causing thi ...
Below is the HTML code: <span> <b>Order number:</b> </span> <span>A36HASJH</span> The value within the span element, A36HASJH, is dynamic and changes with each order. How can I identify this element and store it as a s ...
Is it possible to run Selenium tests with different options for Firefox and Chrome? I have tried setting the options for both browsers, but it doesn't seem to work. Running the same tests with both browsers is feasible, as well as setting options for ...
Just starting out with selenium tests and currently following some tutorials on maven via YouTube. Today, I experimented with a few codes which worked fine until I encountered an "Access Denied" message while trying to search for a product on a store page ...
Trying to extract specific text from an element within a table using the XPATH below: /html/body/form[2]/table/tbody/tr/td/table/tbody/tr[2]/td[7]/input attempting to do so with the following code: driver.maximize_window() # Maximize window driver.implici ...
Lately, I've encountered an issue while attempting to execute my webdriverio tests following an upgrade of my node version. The error message that now pops up is: 2022-01-11T12:45:05.628Z DEBUG @wdio/config:utils: Couldn't find ts-node package, n ...
Currently, I am utilizing webdriver to open a Firefox browser and sequentially provide a URL to it using a spreadsheet that contains 5 URLs in various cells of column 1. In the event that I manually close the Firefox browser after two URLs have been open ...
My computer has a local IP address of 192.168.1.x running Windows 7. Additionally, I have set up a VM with NAT IP 10.0.2.15 and a host-only IP of 192.168.70.64 also running Windows 7. The setup for my hub is quite simple: java -jar selenium-server-standal ...
In search of a distinctive identifier for the "update profile picture button" on my Facebook account to utilize it in automation testing with Selenium WebDriver and Java. I attempted driver.findElement(By.className("_156p")).click();, but unfortunately, i ...
Whenever I attempt to execute the "ng e2e" command with Octopus using the specified configuration, I consistently encounter the following error: [07:20:37] E/launcher - session not created: This version of ChromeDriver only supports Chrome version 79 (D ...
Seeking ways to pinpoint Elements within the page. A table is present with numerous rows containing multiple Inputs. How can I retrieve Input from the various table rows? Below is my Java class definition: public class Setting extends Page { /**L ...
This is the HTML code snippet that I am working with: <div id="sieb-ui-popup-mvg-selected" class="AppletStylePopup"> <form onsubmit="return false;" action="/ecom_enu/start.swe" method="post" name="SWEForm4_0"> <div class="siebui ...
I was testing this code and noticed that it runs without any errors, but for some reason it automatically closes Google Chrome after searching for w3schools. from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdri ...
On this website , I am trying to extract the email. I attempted using requests and Beautifulsoup without success. I also wrote this code utilizing selenium, but it did not work: from selenium import webdriver url = "https://aiwa.ae/company/arad-bui ...
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. ...
After writing a Python script using Selenium and proxies to extract titles from various sites, I discovered that my current approach involves creating separate browser instances for each site. However, my primary objective is to utilize the same browser wi ...
I am currently working on retrieving the count of search results when using the MakeMyTrip application to search for flights from Hyderabad to Bangalore. While I have successfully managed to extract the text, I am now looking for a way to confirm the numbe ...
Looking to extract the URLs of each page from the pagination on a specific site located at . The challenge lies in the fact that not all page URLs are displayed simultaneously. When attempting to scrape using the provided link, only page-1, page-14, page- ...
When recording my tests with Ghost inspector, I can export them in Selenium IDE format. Can these exported tests be used to write future Selenium web driver tests in Java? The format of the exported tests appears as follows: Navigation waitForPageToLoad ...
My current task involves extracting information from a website in tabular format based on specific keywords. Below are the keywords and the sample website: apple LG Samsung Nokia Website = www.wikipedia.com I have organized the keywords in Sheet 1 and th ...
I am attempting to create a test scenario where I need to choose multiple options from a multi-select drop-down menu. I have tried using the Select class but I encountered an error when trying to instantiate it. The error message I received is: "Cannot in ...
Hey there, I'm a bit lost on where to post this, but I really need some guidance on how to make my code trigger the "ENTER" key using a keyboard input. from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdrive ...
Seeking to automate a Web app on iOS Safari for end-to-end testing. Although the following code was successful on an emulator in iOS 17 beta, it appears to not be functioning on a real device (iPhone 12, iOS 16.6). Code snippet for test: const fs = re ...
Looking for a solution to upload a file by clicking on an element: <a class="gray_box" href="#">Choose world folder<span>Select the world folder, we'll do the rest</span></a> The issue arises when the file manag ...
Here is a link for practicing sorting: I attempted the sorting with the following code: Actions action = new Actions(driver); List<WebElement> elements = driver.findElements(By.xpath("//*[@id="demo-tabpane-list"]/div/div")); fo ...
My current project involves using Python, Selenium, and PhantomJS to access a webpage. After getting the page with driver.get and logging in, I received a notification that cookies needed to be enabled. In an attempt to access these cookies, I implemented ...
I am currently utilizing Selenium to initiate a browser. What is the best approach for handling webpages (URLs) that prompt the browser to accept or deny a certificate? In the case of Firefox, I sometimes encounter websites that require me to accept their ...
Requirement: I need to update fields on a URL and click a button using Selenium. (See screenshot of webpage & HTML details below) Problem: An error is being returned as displayed below Error Message: Exception in thread "main" org.openqa.selenium.Elemen ...
I am encountering an issue while trying to send values to this specific XPath. The error message above keeps appearing and I am unable to interact with that particular element. At times, when dealing with the same element, I receive an error stating eleme ...
I am facing an issue with two dynamic drop down lists that are quite similar; I am encountering difficulty in selecting options from the second drop down list. Provided below is the HTML code snippet: <div id="list" class="x-list"> <div id="list- ...
I'm looking to extract specific labels from a list of labels. <div> <label class="search-reusables__value-label"> ::before <p class="display-flex">...</p> </label> <label class=" ...
Despite having Python and pip installed correctly, I am encountering an error when trying to import selenium. Both the command prompt and VSCode acknowledge that Python is installed, yet the error persists. I am unsure of what step I am missing. Can anyo ...
<tr role="row" class="odd"> <td class="sorting_1">Abrar</td> <td>1571</td> <td>Out</td> <td>No</td> <td>ALL</td> <td>Deskflex</td> <td> <a ...
My current dilemma involves trying to launch Chrome with an authenticated proxy connection. I have all the necessary information: the proxy IP, port, username, and password. However, I need to figure out how to establish a connection with this proxy using ...
Currently, I am utilizing Selenium to gather data. However, there is an issue that arises when a message window appears. This window serves as just a manual, and I would like to disable it. Despite attempting various methods such as using find element by i ...
Currently, I am attempting to scrape a website with the following layout: <div> <!----> <!----> <!----> <div class="block"> <h3 class="subtitle is-4"></h3> ... ... </d ...
My first experience using this forum has been quite frustrating. My questions keep getting deleted as duplicates, even though the suggested solutions are not working for me. The initial problem was caused by incorrect jars, but I believe I have the correct ...
I am currently working on a web application using Django and the App platform on DigitalOcean. I have integrated Selenium and Chromedriver into my app, and I was able to install Chromedriver using Python libraries such as chromedriver_binary via pip. Howev ...
I am encountering difficulties with retrieving and utilizing a Select element using @FindBy. Here is the markup: <td> <felt [control]="kontactTypeFC" [classes]="'hb-distNone'"> <label for="contactTypes" class="hb-label"& ...
I have been extracting data from this website: When using selenium to access the site, I sometimes encounter a puzzle captcha that needs to be solved after clicking on the "I am not a robot" captcha checkbox. The challenge is that the site only allows the ...
Is there a way to write the values of a variable on a Text or Excel sheet? I have a variable called tex that stores string values, and I want to output these values onto text files or an Excel sheet if possible. beforeEach(() => { cy.visit('https:/ ...
How can we use WebDriver to wait until text appears in a text field? I am dealing with a kendo text field where the values are fetched from a database, so there is a delay before they appear. I need to ensure the values have loaded before moving forward. ...
Here's a challenge - I'm attempting to come up with an XPATH that targets the list element containing the text "This Is The Text You're Looking For". Unfortunately, my current attempt using li//[contains(text(), 'This Is The Text You're Looking For')]
Situation My objective is to extract text from an element on a webpage, convert that extracted text into a number in string format, and then use it for an xpath query. The code snippet below illustrates this process: var bookingRefString = element(by.css ...
Utilizing Selenium Webdriver within a Python script, I am able to retrieve websites from my webpage and convert them into PNG files: from selenium import webdriver from selenium.webdriver.firefox.options import Options from selenium.webdriver.support.ui im ...
I've been on a quest to discover if there's a way to use the same browser for multiple test cases. The website I'm testing requires each login when the browser is opened. Is there a feature that would enable me to maintain the same browser session and sea ...
Currently, I am attempting to extract dynamic content that only appears when hovering over certain elements. Despite utilizing ActionChains from Selenium for mouse movement and hover actions, I have been unable to capture the desired text. The main issue ...
As a beginner in Selenium, I am using IntelliJ along with Selenium WebDriver and Junit. My current challenge lies in setting up the TestBase class within the PageObject framework. Below is an excerpt of my TestBase class: import org.junit.After; import or ...
Currently, I am working on automating the scraping process for a specific webpage: The main challenge I am facing involves dealing with a dropdown menu: https://i.stack.imgur.com/BCO7y.jpg This is the code snippet related to that particular section: apa ...
I'm trying to click on the "OK" button in a modal alert, but for some reason I can't seem to make it work. // Capturing alert message. String alertMessage= driver.findElement(By.className("modal-header")) .getText( ...
I am currently having difficulty in figuring out the correct way to execute a right click. Below is an example of my code: click_Menu = driver.find_element_by_id("Menu") print(click_Menu.text) action.move_to_element(click_Menu) action.context_cl ...
I am currently working on a script that automates the login process on a website and performs certain actions. The code for logging in is as follows: WebDriver driver; JavascriptExecutor exec; String dni = "..."; String passwd = "..."; ...
Can you advise me on how to open a downloaded file from the footer bar? I am working on creating tests for downloading a PDF in Chrome. I would like to be able to open the file and verify its contents as well. Thank you! ...
I am facing an issue with using @BeforeSuite after the instantiation of WebDriver in Arquillian. Below is an example: @RunAsClient public class GoogleTest extends Arquillian { @Drone private WebDriver driver; @ArquillianResource private ...
Can Selenium be used to detect internet explorer browser plugins? For example, if I open a URL on IE and want to check for any installed plugins, is there a way to automate this with selenium? ...
When using c# Selenium, I encountered an issue where the FindElement method was unable to locate an element on the page. Instead of throwing a NoSuchElementException as expected, it resulted in a WebDriverException. The Exception details are as follows: ...
Hello, I have encountered an issue while using the way2sms website and trying to enter a mobile number in the send SMS screen with Selenium WebDriver. Here is the relevant HTML code: form id="smsFrm" name="smsFrm" method="post"> <input id="ssaction" ...
I am encountering an issue while trying to input my own chosen date as the datepicker is disabled. Whenever I click on the datepicker, it prompts me to select a specific date and even for changing the month, multiple clicks are required. This has left me f ...
I am aware that in order to retrieve the corresponding IDs of the currently open windows, I utilize the following code snippet in Python: current_windows = driver.window_handles print(current_windows) Output (assuming there are 2 open windows): ['CDwindow ...
Click here for snapshot[Snapshot] I am working on extracting the background color of one of seven days and converting it to hexadecimal. The highlighted hours are automatically selected at midnight and displayed in purple. My goal is to identify these hi ...
I'm currently facing an issue while trying to extract names from reviews of a specific product. I am struggling with looping over each review block to retrieve the names nested within them. This is the code I have written so far: from bs4 import Beau ...
Is there a way to create a loop that iterates through page numbers for aria-label? browser.find_element_by_css_selector('[aria-label="Page 1"').click() browser.find_element_by_css_selector('[aria-label="Page 2"').click() browser.find_el ...
I need help extracting specific data from an HTML table. I want to extract the information from the columns with the text "Total" and the value "93" only, rather than extracting all column data as my current code does. For example, the current output is: ...