Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

Filter by
Sorted by
Tagged with
-2
votes
0answers
8 views

Where can i find a Good tutorial on using Apache POI library to read/write Excel sheets in Selenium?

I have many tutorials on the web that explain how to use POI libray to read/write from Excel sheets in Selenium. But most of them are too basic. Is there a course or reference material, which does in ...
1
vote
0answers
19 views

Is each Scenario in Cucumber BDD framework considered a separate .Java Class by JVM?

When I write Cucumber scenario's like:- User.java Feature File Scenario: Add a new user profile Given User is on the Add user profile page When user enters profile information and clicks ...
0
votes
0answers
22 views

How to execute test cases after ide crashed

Kindly suggest if I have 100 test cases after executing 40 Test Cases my IDE was crashed. So, on the next time when I am restarting my Test Cases again the execution should be start from 41 to 100. I ...
-2
votes
0answers
34 views

Brute Force Automation [closed]

How to do the brute force this script for 50 time, anyone can help me? i'm using python selenium from selenium import webdriver #browser exposes an executable file #through Selenium test we need to ...
-1
votes
1answer
22 views

How to write data to excel file-selenium java? [closed]

I'd like to have the data from each tr and td to excel. Each row is not fixed but total td count is 14 per every tr. List<WebElement> rows = driver.findElements(By.xpath("//tr[@id='...
0
votes
0answers
8 views

Executing cucumber feature file in eclipse

I have installed cucumber plugin on eclipse 2019-09 but the console doesn't show anything after I run the feature file. I have created Maven project in eclipse and created one package for testrunner ...
1
vote
4answers
33 views

Creating selenium scripts from requirements

Is it possible to create selenium webdriver scripts just looking at test cases, use cases or requirements. I always wonder how the scripts could be created in advance when the functionality has not ...
1
vote
0answers
35 views

How to avoid using same data in parallel execution

This question is similar to How to manage application data when running multiple tests in parallel? But I want to know if there's a way or listener in testNG that will lock certain method when running ...
0
votes
1answer
54 views

Getting error - …either make it static or add a no-args constructor to your class

I am writing test scripts with Rest-Assured java. I have two classes ApiMethods and AppMethods belonging to one package and another test package called apiTests using the methods created in the ...
1
vote
4answers
78 views

How to initialise the PageObject Class using PageFactory only ONCE in a Step Definition Class in a Selenium Webdriver + Cucumber project?

I am making a Regression suite Automation project using Selenium Webdriver, Java, Cucumber, Maven etc. Now, the problem is that I have multiple Page Object classes that I initialise again and again ...
-1
votes
1answer
50 views

Select dropdown is not working in selenium

I have got the error org.openqa.selenium.support.ui.UnexpectedTagNameException Element should have been "select" but was "span". Can you please help? I have tried this code: ...
-1
votes
0answers
30 views

I want to select filter option in one website after running in eclipse there is no error in console but still filter option not able to click [closed]

try{ // WebElement ele = driver.findElement(By.xpath("//*[contains(@class,'slds-button__icon ee-button__icon action-c')]")); // driver.executeScript("arguments[0]).click();"...
0
votes
0answers
22 views

Sikuli4Net is giving me an error on C# selenium

I was trying to implement image based verification on my selenium project with the help on Sikuli4Net. After following some tutorials I'm getting an error as below. The request was aborted: Could not ...
-1
votes
0answers
10 views

Integrating Selenium tests github repo with Firebase web app into CI&CD

My friend for whom I have been writing selenium tests in Java (located in a separated github repository) has a web app deployed on Google's firebase. What would be the least cumbersome way to ...
0
votes
1answer
37 views

Unable to fill the card details for Payments using Selenium at the merchant's checkout page

I have just started learning Selenium web automation tool and wanted to auto-fill the card details on the merchant's Payment Page but unable to do so using Selenium. Below are the things which I tried....
0
votes
1answer
39 views

Looking for a solution to run selenium tests on EC2 with GUI

My selenium tests are triggered from Jenkins server which in AWS EC2-Ubuntu. But in EC2, since tests run on chrome-headless, debugging has become difficult. I tried XVFB display but had unresolved ...
0
votes
0answers
43 views

Not able to run my test from testng.xml file

I'm not able to run by test case from testng.xml file after run of file I'm getting that Total tests run: 0, Failures: 0, Skips: 0 but if I will try to run the test class directly then test will run. ...
0
votes
0answers
17 views

How to use setUp in selenium?

I want to use setUp instead of setUpClass in my selenium tests. This code works fine and is able to get the correct host when using setUpClass: @tag('selenium') @override_settings(ALLOWED_HOSTS=['*']) ...
0
votes
2answers
54 views

Issue in Selenium script execution using .bat

I am trying to run a selenium script via .bat file. But I am getting failure in CMD. The script runs fine when ran via eclipse ( test case runs properly as testng class and as testng suite). But when ...
-1
votes
2answers
56 views

NullPointerException on WebDriver using POM and Page Factory

I'm getting a NullPointerException on the Registration and BasePage classes for the driver variable. In BaseTest, I initialized the Webdriver with ChromeDriver and in the RegisterTest, it extends the ...
0
votes
0answers
14 views

downloaded pdf file in internal Shared storage in mobile android device

Here after downloading a file in chromebrowser in mobile I'm trying to check that filename is present in Internal shared storage downloads folder in mobile but it is showing null exception. How to ...
-2
votes
1answer
37 views

Performance Testing: Flag when a UI/API test's runtime increases by x% (Selenium C# Azure)

Our team currently use Selenium and C# (and NUnit) to run UI Automated tests. All tests have been manually programmed, meaning no recorders have been used. Issue: We now have a request that these ...
-1
votes
1answer
33 views

Find element in multi layer pages for single website

Hello please I'm quite a selenium newbie and I would need help for my thesis data. I want to scrape this marketplace data https://www.tokopedia.com/search?st=shop&q=dapur but to get the data that ...
2
votes
2answers
136 views

Get class name of the calling class

I needed to get a class name from my calling class. I will not make too much confusion. I have 3 classes . Class A{ //do something } Class B extends Class A { @Test(dataProvider = "dp&...
1
vote
2answers
41 views

Find button class with Selenium on Python

Please I'm quite a selenium newbie and I really need help to get the data for my thesis. I scrapping the marketplace from this url https://www.tokopedia.com/sunxin I want to get the data from the ...
1
vote
1answer
42 views

Selenium Dataprovider returns a NegativeArrayException when called from different class

I have an excel which contains multiple worksheets in it. Each worksheet contains multiple columns. I have a class like this. public class dptwo extends dpone { @Test(dataProviderClass = testdp.class, ...
1
vote
1answer
31 views

Variable in Xpath is not working

#driver.find_element_by_xpath('//div[@id="groups"]/div/div/div/div/div[2]/div[1]/div/div/button').click() i = 5 gPath1 = str("\'//div[@id=\"groups\"]/div/div/div/div/div[2]/...
0
votes
1answer
54 views

Fixing an asynchronous JavaScript timeout out issue with Selenium in C#

Background I am running the following JavaScript code using the C# bindings for Selenium: async function addTableCellClassInjector(row, tableIndex, rowIndex) { for (let columnIndex = 0; column = ...
0
votes
1answer
36 views

how to handle this below window/pop up in chrome when i click on print link . I need to recognize it and click cancel on it

When I click on Print link in chrome browser , a pop is opened which shows it as a PDF file and then on the right side there are printing options with save , print etc buttons . Now when I click the ...
3
votes
2answers
56 views

Test class organization and naming in an MVC webapp

I'm a developer who is making his first attempts at using Selenium for automated UI testing. What is the best practice for creating and naming test classes in an MVC webapp? My webapp has a dozen ...
3
votes
1answer
69 views

Problem implicit wait with wait.until

In my code, I want to wait a certain time until the command fails with implicit wait for the driver. I have parts which were loaded after entering the page and a loading-icon is visible. In these ...
0
votes
0answers
30 views

How can I automate the email signup and verification process using selenium? [duplicate]

I have to automate the email signup and verification process using selenium. Any suggestion?Thanks in advance.
0
votes
1answer
45 views

What is the meaning of test runner? What is the meaning of test runner in layman terms? [closed]

What is the meaning of test runner? Protractor is a test runner. What is the meaning of test runner in layman terms?
3
votes
1answer
56 views

Unable to extract table content from webpage using selenium

I am trying to extract the tables generated by selecting "Branches", a city and a district from this site: https://www.acb.com.vn/wps/portal/en/atm So far, I have been able to write the code ...
1
vote
1answer
70 views

How to use proxy with authentification in Selenium with Chrome WebDriver?

After hours of research I am still not able to use a proxy with authentification (username, password) in selenium using chrome WebDriver. Here is what I tried: using a chrome extension -> not ...
0
votes
2answers
46 views

How to use Selenium to select an option from a React JS drop down with div tag/class?

I have tried all the possible things. also, tried searching over tried different combinations and variations. I can get the element clicked which opens the dropdown. but i am not able to select an ...
0
votes
1answer
65 views

How to get the Chrome Browser cookie file path when it is launched from selenium?

I am trying to scan the cookies of a specific page with selenium. Unfortunately, the get_cookies() method can only get the first-party cookies, but I am more interested in the 3rd party cookies. As ...
1
vote
3answers
84 views

How to pass excel column values into different test methods of a class in Java Selenium

I have an excel which contains 4 columns with N rows. Let us say Col1, Col2, Col3, Col4 are the headers. Now I have a java class and there are 3 methods inside it. public class test(){ @Test(...
0
votes
1answer
67 views

How to disable Chrome Automation Extension via Selenium (Java)

I have a requirement to disable the "chrome automation extension" while running my selenium scripts. Can someone suggest me an approach to disable this extension using Selenium. [ Note: I ...
0
votes
1answer
66 views

NullPointerException - how to fix it?

I am getting this error in those 2 classes: at pages.actions.HomePageActions.searchProduct(HomePageActions.java:30) at testcases.StandardProductPricingTest.standardProductPricingTest(...
1
vote
1answer
46 views

Selenium Extent Reporting Problem

I cannot figure out the problem. After the picture, another problem is here. htmlReporter.config() is not working and I'm not able to fix it. This is my dependency: <dependency> <groupId>...
1
vote
1answer
29 views

Using loop how to get dataframe from each next pages and store table values using Selenium Python

https://seffaflik.epias.com.tr/transparency/tuketim/gerceklesen-tuketim/gercek-zamanli-tuketim.xhtml from the above website, I've achieved to enter date picker for two date range and then clicking &...
0
votes
1answer
60 views

Using sendkeys multiple times to scroll down

I am trying to scroll down a drop-down menu, but since scrolling with a mouse will just scroll the page instead of the drop-down, I thought of using sendkeys by sending DOWN_ARROW multiple times. ...
0
votes
1answer
72 views

How to get WebDriver Instance(Object) from Hooks(@Before) for parallel executions of scenarios

I want to get WebDriver Instance(Object) from the Hooks Class in @Before Annotation setup() method. And I want to do it in such a way that I am able to run my scenarios in parallel. I know what are ...
0
votes
1answer
57 views

Selenium thinks button is clickable even when disabled

I'm having an issue where Selenium is saying a button is clickable even when it's disabled. I'm using Selenium with a website where you have to select a date first and then time slot from a dropdown ...
0
votes
1answer
29 views

How do I write a better xpath of this element? [duplicate]

I am working on a project and building automation test suite for a webpage. A certain part of the webpage looks like this. The corresponding HTML is as follows: <p class="customer-service&...
0
votes
0answers
72 views

Selenium drop down menu can't locate 11th element

Trying to scrape data from https://www.sgx.com/research-education/securities and the code below works but only for the first 10 iterations after which it throws a NoSuchElement Exception. Starting ...
0
votes
2answers
79 views

Why does Google Chrome initiated through Selenium shows less attributes for anchor tags compared to normal Chrome session?

I'm trying to scrape some image href attributes from the <a> tags from a Google search using Selenium, ChromeDriver and Chrome. When the url is accessed manually I'm able to locate the required ...
0
votes
2answers
33 views

UI amounts and conversions to numbers/strings

I have a number of UI-visible amounts which I am comparing with what I have prepared as a part ot my test cases - randomized&mocked test amounts are doubles. What is the usual best practice? ...
0
votes
0answers
21 views

[[TestNGClassFinder]] Unable to read methods on class

[[TestNGClassFinder]] Unable to read methods on class package.CreateCustomer - unable to resolve class reference org/openqa/selenium/WebDriver I have created a testNG program and run the program using ...

1
2 3 4 5
92