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
0
votes
1answer
54 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
1k views

Selenium OnClick identify button C#

How to identify this button in C#: <button class="reward_link_redeem_button_style" onclick="RedeemRPProduct('free_points_1')">REDEEM</button> <button class="...
0
votes
2answers
13k views

Selenium IE Webdriver showing “Only Local connection are allowed” in TestNG

I am trying to launch my application in IE browser in selenium using TestNG framework. But, after the IE browser is launched, the Eclipse console shows an error that "Only Local Connection are allowed"...
0
votes
2answers
409 views

Can we Verify Contents on the browser PDF print in Selenium Webdriver?

I need to verify PDF contents, when I click on pdf print button on web page, it displays PDF to print. How can I verify? Is it possible?
0
votes
1answer
25 views

Not able to select option from div type listbox in selenium C#

Here the id=popupY8cuUiMiDU is dynamic.I need to get the Y value from span but there are multiple listbox with the same span attribute taking Y option. How can I select from listbox as there is no ...
0
votes
2answers
1k views

Selenium WebDriver statement is skipping after ajax call

Selenium WebDriver statement is skipping after ajax call for example if we use hotmail signup and want to check whether email is available or not I input the text and on lost focus hotmail return a ...
0
votes
2answers
1k views

How to click on an element in pop-up?

I want to click on the highlighted English Element but unable to click on that. Actually its a pop-up wind appear when i click on the some button. But my main concern is that I'm unable to click on ...
0
votes
1answer
51 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
1answer
340 views

Getting “testng.xml is not a valid file” error in Jenkins

I’m getting the following error when trying to run a Selenium/TestNg test from Jenkins. [ERROR] Suite file /development/apps/config/jenkins/jobs/teste-automatizado/workspace/Abc/testng.xml is not a ...
0
votes
0answers
48 views

Selenium - Web driver code is not working after restarting the system

I installed eclipse to work with Selenium, my code was running successfully until I restarted my system. After restarting the system and running the existing code which was save before restarting the ...
0
votes
0answers
54 views

Selenium - Unable to select the dropdown value inside shadow element

I am trying to select the drop-down value inside my shadow element using the below code, I went to the last point but the selection has not happened. I want to select any dropdown item from the screen ...
0
votes
2answers
465 views

Selenium - element not interactable

I have created a test plan using Selenium/Webdriver in JMeter and trying to run the test plan using chrome driver in headless mode, unfortunately it didn't work. Please see the logs below for more ...
0
votes
1answer
59 views

Selenium - sendKeys() function is not working

I am using eclipse Helios Version: Helios Service Release 1,Build id: 20100917-0705 with selenium 3.141.59 but when I am trying to use this sendKeys() function then it is showing error message: The ...
0
votes
1answer
50 views

Error when running a script

I'm new to selenium. I installed all the required Jars, but at the end when I run the script to see if it works, I got an error message. Please help. Code: import org.openqa.selenium.WebDriver; ...
0
votes
4answers
1k views

Gecko Driver not navigating to URL

i am having a funny issue with my gecko driver. The browser loads however it does not redirect to the URL as stated below. Dim fireDriver As New FireFoxDriver(New FireFoxOptions() With {....
0
votes
1answer
3k views

Unable to create new service - Selenium + Jenkins

I have an error in my Jenkins + Selenium integration, the Selenium Grid Version is 3.7.1 (Installed by default for the Jenkins Selenium Plugin). I'm using the last chromedriver version. When I run my ...
0
votes
1answer
353 views

Clicking flipping image in selenium webdriver using C#

New to this platform I'm a beginner learning selenium webdriver with c# but I have a problem clicking on a flipping image, I identify the id but it won't click on it. I was told to use wait which ...
2
votes
2answers
424 views

Close a one windowHandler at the Webview

I am writing scripts to automate a hybrid application. On my app I have two windowHandles. For example, after performing some actions when I execute below code I get "2" windows as the windowHandles ...
0
votes
1answer
842 views

How to run multiple test cases sequentially in NUnit Console Runner

I'm trying to run nunit3 exe through Jenkins but after building the project, it runs all available test cases parallely. They should run sequetially. I tried where clause in nunit but how it will ...
1
vote
3answers
4k views

Selenium: dealing with intermittent cases of element not found

Sometimes it works and sometimes it doesn't. I've tried implicit wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); I've tried explicit wait: wait.until(ExpectedConditions....
5
votes
3answers
5k views

How to fix intermittent typing problems with send_keys?

See attached. Once in awhile (say, one in several hundred test runs), I'll have something like this happen: What it should have typed was AttachmentCount:0. Another example where it is retyping "...
7
votes
3answers
3k views

What is the best way to handle minor intermittent automation failures during cross browser testing?

I run Web Driver (.Net version) with SpecFlow as my test driver on some fairly general Cross - Browser scenarios so I often am rerunning tests as I add new ones, or clean up old automation. On ...
1
vote
0answers
503 views

Is there a way to find Element by xpath-Javascript?

Starting automation at my job and currently the way I've been doing it by xpath and button description. There are only classes, no id's, and right now dev is re-doing the UI. Therefore, CSS selectors ...
2
votes
1answer
5k views

Using Protractor Cucumber JS: When running a test, the test passes when it shouldn't

I'm writing a test where I should log in. It passed given the proper inputs but when I change its password/username to garbage, it still passes. I'm new to this and I really think I missed something ...
2
votes
0answers
3k views

Data driven using xml file in java selenium

I have already used the data driven approach and executed the test cases using excel file. I mean the data is extracted from excel file. Now I want to extract the data from xml file and execute the ...
1
vote
0answers
2k views

How to compare image using AShot in selenium (Java)

I am using this code: package wayPoint; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.concurrent.TimeUnit; ...
2
votes
0answers
166 views

Change label in webpage using jscriptexecutor of selenium

We have an AUT a web application which is in Japanese. We are trying to follow below approach (not sure if it is correct) to get the Japanese label text into English. Approach (using Selenium): Open ...
1
vote
1answer
708 views

Selenium Python - Unable to find an element, get stale element exception when using element locator

Scenario: 1.Login to a website using script and navigate to the Home page. 2. On the home page, click a link and navigate to a new page. 3. Then navigate back to the home page using the top navigation ...
0
votes
2answers
544 views

While reading repository properties file the method click() is undefined for the type Object message is showing

Properties file cannot be reading, it returns error validation message. The method click() is undefined for the type Object Properties obj = new Properties(); FileInputStream objfile = new ...
0
votes
0answers
223 views

Selenium test work with mstest but not vstest.console

I am able to run these tests in MSTest. But I am now wanting to gain more control and utilizing runsettings files/parameters etc. I have upgraded the packages to point to mstest.adapter, mstest....
0
votes
0answers
428 views

Explicit Wait doesn't work, but Fluent Wait works Ok

I need to have following test: open page (js loader is presented) select box delete box When I do test without waiters: driver.get("http://example.com"); mediaPage.selectBox("...
0
votes
0answers
772 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: If WinExists("","Chrome Legacy Window&...
0
votes
0answers
1k views

Selenium headless browser - setting default page zoom

I have a problem with browser zoom in Google Chrome and FireFox. I have one button that is overlapped by another element (my page always have 100% zoom and is very bad for me because a lot of elements ...
0
votes
0answers
2k views

Error when clicking element::: org.openqa.selenium.WebDriverException: d is undefined

Scenario: In an application, I have collapsed button on expanding that, its submenu are listed and clicking on submenu open that particular page. Getting the following error when clicking: org....
0
votes
0answers
199 views

NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. I am getting this error while I try to run the project using webdriver. Using the ...
0
votes
0answers
35 views

Selenium - Unknown error - element input

I have make 3 function for blank data,invaliddata and validdata. I have user autoit for the upload the the file from the window. At the debug time script is run properly but at the run time it ...
0
votes
0answers
65 views

Why does my appium server skip my second emulator on parallel test

I have done the following: Start Selenium Grid Started 2 emulator; Started appium servers for both using appium -p <appiumPort> --nodeconfig /absolute/path/<filename>.json Ran my script: ...
3
votes
0answers
262 views

Protractor: Getting 'Failed: Unknown error' for test running in Edge Browser

My setup: Protractor Version: 5.3.0 Edge Version: 38.14393.2068.0 Edge HTML: 14.14393 MicrosoftWebDriver.exe version: 10.0.14393.0 Windows 10 Enterprise 64-bit Code: seleniumAddress: 'http://...
1
vote
2answers
38 views

i found Null pointer exception while executing testng in selenium

package com.tng; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterMethod; import org....
0
votes
1answer
2k views

Maven TestNG multiple suites in different folders

I'm working on a mobile automation task where I need to run test suites in parallel for 3 different iOS apps. Each test suite has its own testng.xml with a section configured to run on a device. I ...
0
votes
1answer
543 views

unable to run test cases in IE browser in protractor, selenium framework for angular.js web application

I was trying to execute test cases in IE, and I am facing errors as shown in error picture, my config file is shown below. using IE 11.09 with selenium webdriver-4.0.0 in windows server 2012 R2 ...
0
votes
2answers
495 views

SyntaxError: invalid syntax // SyntaxError: unexpected EOF while parsing

How do I detect text inside of this, this is HTML & this is XPath. I tried HTML <span class="messageText">Hello.</span> XPath //*[@id="liveAgentChatLogText"]/span[22]/span[2] ...
1
vote
5answers
7k views

How can I switch ON/OFF AIRPLANE mode and wifi using Appium?

How can I switch ON/OFF AIRPLANE mode and wifi using Appium ? Selenium has below option: NetworkConnection mobileDriver = (NetworkConnection) driver; if (mobileDriver.getNetworkConnection() != ...
-1
votes
1answer
37 views

TestNG - java.lang.NullPointerException [duplicate]

My code: package test; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng....
1
vote
4answers
112 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 ...
4
votes
0answers
1k views

How to use multiple wait conditions in Selenium Webdriver using ruby?

I wanted to know, how I can use following waits in program at which situations? driver.manage.timeouts.implicit_wait = 20 driver.manage.timeouts.script_timeout = 20 driver.manage.timeouts.page_load = ...
1
vote
2answers
814 views

To work with two different drop downs which are dependent on each other

I have a scenario in which i am finding bit difficult to automate . The test scenario is : There are two drop down . 1.To select the state. 2.To select the respective cities. So i need to write a ...
0
votes
2answers
160 views

I am automating coop website and I'm facing problem while customizing XPath for add to cart button

I have customized an XPath for adding a product which has discount 30% for 2. Now I am facing problem while adding this into the cart. package sample; import java.util.ArrayList; import java.util....

1 2
3
4 5
92