XPATH Not Found through Placeholder or Label
I'm creating a Selenium tool to automatically fill out contact forms on websites. I select the appropriate input/textarea through By.NAME or By.XPATH. For the most part, it is working, but I'm having...
View ArticleSelecting element from drop down list using selenium web driver
I want to select element from drop down list but in html they have used <img> tag. How can I achieve my goal?This is stuff from my code:public void country() {...
View ArticleScrolling to element using webdriver?
I am still learning and in response to one of my questions: here, I was told to that it might be due because the element in question is not in view. I looked through the documentation and SO, here was...
View ArticleHow to read multiple sets of value in the excel sheet using DataProvider in...
I'm fairly new to Selenium WebDriver. I wrote code to read the login credentials and values from the excel sheet by using Data Provider.It runs through the first set up data(login functionality)...
View ArticleNot able to access the PDF element inside the embed in Selenium C#
Below is the HTML structure from my website<div><iframe src="link.pdf" width="100%" height="500"> #document <!DOCTYPE html><html><head></head><body style="height:...
View ArticleWhere to find docs to css selector selenium?
Given:I can find the docs for selenium and know basic constructions.https://www.selenium.dev/documentation/webdriver/elements/locatorsExpected:I want to find the CSS selector and XPath languages for...
View ArticleRetry failed tests in MStest
Help me figure out how to restart tests for mstest (I just switched to it). I know that there is no built-in restart functionality, but I know that you can create custom attributes. I tried creating a...
View ArticleChrome Selenium show file downloaded but I can't find it or click the file in...
Browser act as file is downloaded, I can see the file in the panel, but I can't open folder or click on the link in the panel, nor find the file in its designated downloadpath or anywhere else. Worked...
View ArticleIs there a way to automate the printing process of documents? [closed]
So I have a list of links that open in a pdf viewer in web. Each pdf has 3 pages, is there a way to automate the printing process printing only the first page of each pdf? I have to process 50 of this...
View Articleunable scrape the data using "--headless=new" for a dynamic website using...
I am trying to scrape this website https://www.noon.com/uae-en/sports-and-outdoors/exercise-and-fitness/yoga-16328/. I am trying scrape the data for each product and from each page. For that I am using...
View ArticleIssue with undetected-chromedriver: Browser crashes when navigating to a website
I am encountering an issue when using the undetected-chromedriver library in my script. The browser opens successfully, but when I try to navigate to a website, the browser crashes, and a white screen...
View ArticleClicking on expand button using Selenium not possible?
i try to click the "Expand All" Buttonusing the following code:import timeimport os, sysfrom bs4 import BeautifulSoupfrom selenium import webdriverfrom selenium.webdriver.chrome.options import...
View Articlejava.lang.NoClassDefFoundError: gherkin/formatter/Reporter for Cucumber with...
I am trying to generate extent report for my test case using Cucumber and Extent report using JUnit. But I am getting:java.lang.NoClassDefFoundError: gherkin/formatter/Reporter...
View ArticleSelenium gets very slow at switching between iframe
I am passing through the same problem (not resolved, BTW) on this Java question, but at C#:Testcase running very slow after opening new window with iFrameThe iframe I am switching to:<iframe...
View ArticleBit by bit horizontal scrolling till element is found
I would like to perform horizontal scrolling till my element is found and once found I have to update the value in the field.period = Nov-26ele_xpath...
View ArticleURL website wont open up in selenium, when using undetectable chrome driver
Been working on this code for a while now but for some reason it wont work,Trying to simulate a bot that can press add to cart button, I was able to do it using the regular chromedriver but then I...
View ArticleHow to deal with load more button?
I have this question about load more button. The page need to make this "road map": go to search's page, "see" product one by one, click on them and then go back to the search's page. My approach was...
View ArticleCheck if action is running out of time
I would like to perform a check.If I excecute the actions in block 1 within 3 seconds, the script has to go to the last block of the image (time sleep). But if the actions taking more than 3 seconds,...
View ArticleSelenium Browser not loading all the dynamic data
I am trying to scrape a single datapoint from the following websiteThe datapoint is the value of the service charge in the property information table.If i navigate to the website myself I can see the...
View ArticleHow to collect data on multiple products from dynamically generated URLs...
Given the following link:...
View Article