We’re rewarding the question askers & reputations are being recalculated! Read more.

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
4
votes
2answers
384 views

Tomcat Server when used amongst Selenium Grid setup

We are using a different style of Automation framework in our project (as per client request) wherein we have designed a JSP page and this page contains links and buttons through which each ...
0
votes
1answer
1k views

logger cannot be resolved to a type

package automationTester; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import java.util.logging.Logger; public class ...
0
votes
1answer
800 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
11k 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
1answer
284 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?
3
votes
3answers
11k views

Unable to switch to frame which is inside an iframe

I am unable to locate a frame inside an iframe. I have attached the screenshot of the html page. I am able to locate iframe 'content' by xpath //div[@id='pageContentDiv']//iframe which I verified in ...
0
votes
1answer
67 views

Unable to locate a search suggestion element Selenium C#

Hi, I am trying to locate and click on the element that comes up in the search box when I type some name. Can someone please help me out to find & click on the name? I've use searching by XPath - ...
2
votes
2answers
1k views

Unable to enter text in windows dialog box in remote machine [Using Robot class]

In a test case, I need to enter a file path in the Windows dialog box which in turn uploads the file in the specific location. I used Robot class to handle this. Issue: It works seamlessly in local ...
0
votes
1answer
96 views

Unable to get text of an element

I have selenium Test case to validate contents of 2 web pages. The issue, I am facing is I'm not able to get anything from element.getText(). I'm using below code. driver1.get("https://some url"); ...
0
votes
0answers
26 views

Driver does not recognize pop-up's - can not switch

In years it is the first time I saw something like this, when I do a: config.getWebDriver().getWindowHandles().size() The result is always 1, but in fact, there is a main window opened and after a ...
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 ...
8
votes
4answers
148 views

Testing Real World Objects - Interview

I have a Junior QA interview coming up, and I was asked to learn the basics of Selenium. I have done this through free tutorials. I am fine with the Selenium concepts, but I was told I would be asked ...
0
votes
2answers
2k views

Type mismatch: cannot convert from ChromeDriver to WebDriver

I am getting the following Exception: Exception in thread "main" java.lang.Error: Unresolved compilation problems: Type mismatch: cannot convert from ChromeDriver to WebDriver The method get(...
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
2k 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 ...
4
votes
1answer
2k views

Dependent methods in the same class run out of order only when included in a “testng suite”; running class independently respects the dependency

I have a class with dependent methods using the TestNG annotation dependsOnMethods The test runs fine 100% of the time if I simply run it as a TestNG Test from the package. When I include the test ...
0
votes
1answer
316 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 ...
1
vote
1answer
633 views

Caused by: org.openqa.selenium.NoSuchWindowException: no such window is displayed in Geb

I have a written a Geb script for automation and I need to handle the Popup. but when switching the child window to parent window am getting a No Such Window Exception Below is my code: def ...
1
vote
1answer
3k views

How to capture error message from the toaster using selenium with java

I am searching for something specific, from a dropdown and want to capture the error message when no results are found. The message to be displayed from the toaster is "No Records Found"
2
votes
2answers
334 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 ...
3
votes
2answers
622 views

How can I place on-screen messages with Chrome running under Selenium control?

I'd like to be able to see on-screen messages when my Chrome browser is running under Selenium, which will be useful to the human tester who occasionally monitors the execution manually. (The message ...
1
vote
1answer
240 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
554 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 ...
0
votes
4answers
2k views

Selenium Java :- [1553593587.996][SEVERE]: Timed out receiving message from renderer: 10.000 [1553593587.997][WARNING]: screenshot failed, retrying

I am using Selenium 3.14.0 with Java to automate my tests. Until yesterday(25Mar 2018) , everything was up and running fine.In case of any failures , screenshots were taken and embedded successfully. ...
1
vote
1answer
420 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
49 views

How to close java application after uploading file

I have a test to upload one file and then upload another file. When first file is uploaded, java application is opened: Steps to upload file: - click on upload button - using robot and keyPress, ...
0
votes
2answers
315 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
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
426 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
1answer
93 views

How to keep a count on number of clicks on a file

I want to move the file downloaded on first click to folder 1 and move the file downloaded on second click to folder 2 using java. How it can be achieved using Java. Can somebody help me ? for (...
1
vote
2answers
226 views

Stop page load, or visit page without waiting for full page load -Capybara

Background: A web page takes about 2+ minutes to load. Problem: I am currently automating acceptance test using Capybara, Rspec, Selenium. Visit(URL) -- waits for all the way until the page is ...
0
votes
2answers
254 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] ...
0
votes
2answers
264 views

Element is not clickable at point (x, y) because another element obscures it - BLOCK UI class

When I run my test, I receive an error because an element obscures the element I want to click. How do I create a wait that will be executed only IF this class is detected, wait it to disappear and ...
2
votes
1answer
50 views

Selenium python checkbox by span class

I have an issue with checkbox check in selenium python, I want to make not exact xpath, but something like I did earlier in the code : browser.find_element_by_xpath(".//span[contains(text(), 'Dalej')]"...
4
votes
2answers
125 views

Is it okay to use UI automation code in API automation tests?

Say that I am testing a GET api. The get api fetches data which is stored due to user actions on a web UI. The data cannot be setup by simply looking at the network inspector calls for these actions ...
2
votes
1answer
884 views

Protractor- in same page how to switch from non angular to angular, its clicking on non angular elements but not on angular?

In same page how to switch from non angular to angular, it is clicking on non angular elements but not on angular, when click on non angular lookup then angular window(Popup) will open
0
votes
1answer
718 views

HTML file is not generated in the extent report

I have made a script to generate an extent report, but HTML is not generated. Please check below code: Report.java: package report; import org.testng.Assert; import org.testng.ITestResult; import ...
1
vote
1answer
4k views

Selenium Testng, getting error Null Pointer exception

I'm using below code using Testng, getting error Null Pointer exception: public class Login_SF { public static WebDriver driver; String text; @BeforeTest public void Login() { System....
1
vote
2answers
386 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 ...
2
votes
1answer
351 views

Selenium WebDriver/Grid:Page is not loading after authentication in Firefox browser

I have created a test in C# which launches Firefox browser,navigates to application URL which loads a authentication screen.Enter user credentials and hit submit. Firefox is unable to navigate to ...
0
votes
2answers
68 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 ...
2
votes
1answer
3k views

Bypass certificate error in IE

I have tried over and over again to get the Internet Explorer Driver to bypass bad cert errors in WebDriver. Currently I do this: driver.navigate().to("javascript:document.getElementById(‘...
3
votes
2answers
345 views

Protractor Image didnt upload on dialogue box?

I want to test the image upload functionality using Protractor but my written script didn't work. When we click on the dialogue box image it opens the window to select the desired image. After the ...
8
votes
0answers
813 views

Is there a way to use Selenium 3 to automate testing in Safari 11 without the 'glass pane'?

According to the WebKit documentation for Safari 10: "When running a WebDriver test in Safari, test execution is confined to special Automation windows that are isolated from normal browsing ...
5
votes
1answer
308 views

Internet Explorer doesnot login to website of remote desktop is not opened

I am writing a simple script that will login to a website, I am trying to run it through Jenkins job on a remote desktop , I have placed my code on GIT Hub and configured Jenkins to run test. My ...
-1
votes
2answers
36 views

Can anyone explain use of Driver Factory and its implementation to get parallel browser at same time?

When do we need to create a Driver Factory ? What advantages do we get over regular initialisation of driver when we use driver factory approach. Also how to initiate parallel browser testing using ...
0
votes
2answers
67 views

Need Some Help in implementing a logic for automating a web element using Selenium

Here is the html I am working on, the concept is to loop through the table and fetch all the td values. And based on the first td value, fetch the second td with tag strong inside the td tag e.g: I ...