Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [selenium-webdriver]

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

0
votes
3answers
33 views

Unable to locate element Selenium Java

My xpath: @FindBy(xpath = ".//div[@class=\"recaptcha-checkbox-checkmark\"]") private WebElement captchaCheckBox; Method: public void clickCaptchaCheckbox() { captchaCheckBox.click(); } ...
0
votes
2answers
28 views

Unable to find element with css selector == input[name='username']

WebElement username = driver.findElement(By.cssSelector("input[name='username']")); The statement mentioned above was working before but right now concerned element can't be captured and error ...
0
votes
1answer
25 views

How to close this dialog

This is the code for an opening specific page and after that popup appear which I am unable to handle. I have used alert, switchTo, etc.. //Open Browser WebDriver driver = new ChromeDriver(); //...
0
votes
1answer
23 views

How can I turn a list of assertions into a table? C#/Specflow Selenium

I am very new to using C#/Specflow to write tests so thank you for the patience. I have a test that ends like this: Then the Details page should display the rating zip code And the Details page ...
0
votes
1answer
29 views

How to verify the page source before and after refreshing [on hold]

How to verify the page source before and after refreshing and how to print the both the page sources
-1
votes
0answers
23 views

how to verify whether the page is refreshed or not on clicking the check box

In my case, There is a filter on left side ,where i can select the filters using the checkbox. Now i want to verify on selecting the check box, The right side section is refreshed or not.. Note : The ...
0
votes
2answers
25 views

Continuous Integration Selenium Webdriver with Azure

I have created a Selenium Webdriver C# script for login module of my app and it's running on my local machine. Now the things is What is continuous integration. As per my knowledge we can build, ...
0
votes
1answer
27 views

Java Null pointer exception when trying to click on an element that is present in a block and becomes visible when another element is clicked

I am trying to click on an element which is present in a block and the block itself becomes visible when another element "Your Trips" is clicked on. I am able to find the element and click on Your ...
0
votes
0answers
8 views

Webdriver instances not created for custom protractor.conf file

I want to integrate my E2E suite in Travis, so I followed this article. As mentioned in the article I've created a custom protractor.ci.conf.js file of the Travis build. I've placed this file inside ...
1
vote
3answers
70 views

Flaws in the Page Object Model?

I read this article about flaws in the Page Object Model/POM, authored by a lady at ThoughtWorks - https://blog.getgauge.io/are-page-objects-anti-pattern-21b6e337880f She says that POM leads to ...
0
votes
1answer
29 views

unable to handle this popup used almost handler [duplicate]

HI. can you suggest me how to handle this popup as i have used almost every handler to handle it but still no result? please provide some solution. the highlight is shown which is to be handled. ...
0
votes
3answers
26 views

should tests be run on the same machine/server the website being tested is located on? Selenium testing

Are there any rules or articles which discuss where tests should ideally be run? Specifically smoke tests. Smoke tests should run quickly after someone checks in new code. If you are looking for fast ...
0
votes
1answer
37 views

How to find the XPath for the below provided screenshot page

I want to click on the 4th element of the list it's an auto populate list and following code is not working. driver.findElement(By.xpath("//*[@data-text-as-pseudo-element='CORENA P 150']")).sendKeys(...
-2
votes
0answers
19 views

How to close driver when internet is disconnected [on hold]

So I am automating a NetGear switch and initially connected it with local IP. What am I doing? --> Changing it's default IP address and Gateway address. Once I change IP address and Hit Apply button ...
-4
votes
1answer
28 views

How can i get web element xpath? [on hold]

I am trying to get web element XPath and print my console I am using the getAttribute() method but it will not work
0
votes
3answers
49 views

Unable to find element with xpath

I'm using driver.findElement(By.xpath("//a[@title='A K T İ V A S Y O N']")); to locate the element given below in the screenshots but getting Unable to find element error.
0
votes
1answer
24 views

how can i capture src in xml by using cssSelector or Xpath?

how can i capture src in following xml by using cssSelector or Xpath ? <INPUT src="/TelsimGlobal/Menu/image3.gif" type=image> i tried to execute following ones but always faced with "Unable to ...
3
votes
1answer
133 views

How to change the Selenium IDE file extension (.side file into java file) while saving the project

Currently, am I using the Selenium IDE in the Chrome. My projects are saving in the form of .side extension. Is there is any way to change this file as java file for selenium web driver.
0
votes
2answers
29 views

How can i solve this org.testng.TestNGException: org.xml.sax.SAXParseException

org.testng.TestNGException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. at org.testng.TestNG.parseSuite(TestNG.java:327) at org.testng....
0
votes
1answer
25 views

Locating a web element

I am having a bit of trouble locating a particular button in one of the ecommerce applications I am writing automation for. Here is a snippet of the mark-up: <button class="btn btn-primary btn-sm"...
1
vote
1answer
14 views

unable to select desired element from the list populated with AutoSuggest Dropdown

On https://www.emirates.com/us/english/ site Departure Airport DropDown I am trying to select 3rd option Jakarta here by typing the keyword KAR but I am unable to do that. It types the keyword kar and ...
-1
votes
0answers
25 views

How to automate a payment transaction in online POS?

I want to test a payment solution which include merchants, customers and vendors.There is multiple transactions between users.I am new to new to automation so i suggest a better tool to test this ...
-1
votes
0answers
36 views

How to input values in copy/paste restricted input box

What would be happening if copy and paste restricted in input field? Will send keys method work? Using selenium python lib, and send_keys fails to fill in value in input field where copy and paste are ...
0
votes
1answer
40 views

Using FindBy in abstract class

I have couple of pages that have similar structure, similar elements. But selectors are different from the first tag. Example: Selector for the element on one page: @FindBy(xpath = "//picture-item//...
1
vote
1answer
35 views

WebDriver to close popup window after certain time

I have a Selenium WebDriver based test, which fill a form and send it for processing. During time period of processing a window is opened. Sometimes processing fails, but this window is not closed, so ...
0
votes
0answers
27 views

Selenium Python ->Browser zoom

I have a problem with browser zoom in Google Chrome and FireFox I have one button what overlap by another element(my page always have 100% zoom it is very bad for me because a lot of elements are ...
0
votes
1answer
34 views

Selenium code generates error messages the likes of CS0246 & CS0103

I am getting lots of CS0246 Code error messages in Visual Studio after trying to run the Selenium code below. I have chosen the ASP.Net Core file to programme the code in. The file is called ...
-1
votes
0answers
18 views

GUI ControlTesting

I am thinking about a possible way to automate GUI controls of Web pages. Let consider case where all of your application GUI get changed, all Textbox, Images, Hyperlink etc... and now you wants to ...
-1
votes
2answers
41 views

What is the best implementation strategy of Driver creation in Selenium Webdriver with Java?

As in my framework, I am creating the driver object by collecting the info from the test suite itself. We are passing the driver name through the testng suite and at runtime, we are collecting the ...
-1
votes
1answer
46 views

Automation testing using selenium and python

I am new to automation testing. I am learning from last 2 months. My company needs a program to check multiple URLs and perform tests on them to see if the sites are working or not. If not working, ...
0
votes
1answer
64 views

“org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally” issue on jenkins(openshift) chrome node

I've been trying to run selenium codes over Jenkins (server/openshift). There is chrome node in the jenkins machine for Test Automation - Selenium. I'm getting this error: org.openqa.selenium....
4
votes
4answers
123 views

Do we need to add automation coverage for customer bugs?

As currently, we are having coverage for P1 test cases for an end to end scenarios. We are following the test pyramid strategy. But now we are planning to cover the customer bugs. So just want to know ...
1
vote
1answer
72 views

What are best practices for cross browser/platform testing?

I have to perform cross-browser testing on different platforms. So before to start just want to know the important points that need to be taken care of.
0
votes
0answers
10 views

How to select NGXTELLINPUT (International Telephone Input for Angular js) field?

I am unable to Use SELECT class on NGXTELLINPUT field for angular with SELENIUM using python because there is a list inside DIV tag of Input , and it is throwing a same error every time that "SELECT ...
1
vote
3answers
52 views

Select element by containing text without XPath in Selenium

There is a great discussion on what makes a good Selenium locator here. It seems many testers prefer CSS to XPath for locators, for various reasons. And that goes for me, too. But, it is often ...
0
votes
1answer
27 views

Is there any possibility to open a new tab in existing window in selenium? [duplicate]

I have tried to open new tab in existing browser but it opens in new browser.
1
vote
1answer
24 views

Can I automate a Terminal Emulator with Selenium?

Please, could you tell me if it is possible to automate Terminal Emulators using Selenium, I need it to be in Selenium not in UFT
0
votes
1answer
37 views

What is the default wait time for driver.findelement/findelements mthod

I mean if the element is not present in the page after what time interval it throws exception . FYI this i am not using any wait (implecit/Explicit wait).
-1
votes
2answers
44 views

How locate dynamic text field element inside dialog box?

I tried to using absolute xpath to locate the dynamic text field element after search but it fails. <div class="pzbtn-rgt" data-click="..."> <div class="pzbtn-mid" data-click="...."> <...
0
votes
0answers
37 views

Handle windows authentication pop up on Chrome using AutoIT

I am trying to handle the basic authentication pop up for my Selenium webdriver scripts using AutoIt in Chrome. I am using following AutoIt script: WinWaitActive("","Chrome Legacy Window","120") If ...
0
votes
1answer
45 views

How to save strings in individual lines in a text file

I'm preparing an automation script which can check spelling mistakes from a website and show me the misspelled words and prepare a list for the same. To do this, I need to split sentences to the ...
-2
votes
1answer
36 views

NullPointerException [closed]

I am testing an application using Selenium WebDriver with Java. I am using TestNG framework to develop my test cases. The issue is that I all my test method are throwing Null Pointer Exception and as ...
0
votes
0answers
42 views

Selenium firefox driver can not install firefox extension

When runnig jmeter on the Linux OS from GUI mode it fails. The part of log file is below org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port ...
0
votes
1answer
54 views

select an dropdown element selenium java

clicking on service provider exposes a submenu and i need to select one of the options in the submenu. i keep getting not interactableas error... org.openqa.selenium.ElementNotInteractableException:...
0
votes
1answer
23 views

Python Selenium code is not able to double click on a webelement when multiple tests are run together but works when tests are run individually

Posting the code snippet for abc in self.driver.find_elements_by_xpath( "//div[@class='ag-body-viewport']//div[starts-with(@class,'ag-row')]"): ...
1
vote
1answer
31 views

SafariDriver extension is no longer supported so how do you run selenium tests on Safari browser?

SafariDriver extension is no longer supported so how do you run selenium tests on Safari browser? What is needed to setup my Safari browser to be able to run Selenium tests? What desired capabilities ...
-2
votes
0answers
16 views

i am facing this issue in jmeter, “Invalid post data, please correct the request”?

I am trying to send data through CSV file but I am facing this issue "Invalid post data, please correct the request"
-1
votes
2answers
56 views

How to interact with web elements with the same ID's?

I have three drop-downs with same ID's and want to click each of them, one by one, but it will click the same element three times. The remaining two elements are failing, but that test case is passed. ...
0
votes
1answer
24 views

is there any possibility to check the button sizes and images are loading or not in selenium?

how can I check frontend button sizes, logos, and images are loading or not?
1
vote
5answers
93 views

how can i apply 3 seconds wait each and every webelement in selenium?

I am trying implicit wait in my code that is not applied for each and every element. I want to want 3 sec for selecting each and every element in my scripts.