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
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
392 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 ...
5
votes
1answer
315 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 ...
0
votes
2answers
70 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 ...
0
votes
2answers
152 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....
5
votes
3answers
566 views

PHPUnit Selenium-2 Test Case BadMethodCallException

I have installed selenium-server-standalone-2.33.0.jar, phpUnit, selenium extension for phpUnit. This test runs ok: $this->url('/'); $this->assertEquals('my title',$this->title()); But ...
3
votes
2answers
400 views

Automation tool for testing integration of a Web application with a desktop application?

I am new to Test automation and would like to try my hand at automating a web application project. This web application gets its data from a desktop application (on syncing). I was thinking that ...
0
votes
1answer
38 views

Automating a desktop app based on Chromium Embedded Framework using Selenium

Background: At work we are passing the --remote-debugging-port=9555 parameter to a CEF based desktop app and launching it using Runtime.getRuntime.exec("path to app"). Then, using selenium, we open an ...
1
vote
1answer
180 views

Finding dropdown name where only the first word matches given string using Selenium

I am trying to match the first word in a drop down list with a given string. What is happening is when I am creating a new drop-down name, it is getting updated by some different name, though the ...
1
vote
4answers
7k views

selenium.NoSuchElementException: Unable to locate element: #passwordNext

Error: Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: #passwordNext For documentation on this error, please visit: http://seleniumhq.org/exceptions/...
0
votes
1answer
128 views

How to scroll to the particular unique URL using selenium?

public class Test1 { public static void main(String[] args) { // Storing Url in the String variable String url = "Target URL "; // Launch driver.get(url); /...
0
votes
1answer
442 views

Selenium for Parasoft SOATest jython script

From past few days I'm trying to write some browser automation script with jython in Parasoft SOATest with no luck. I tried webking api, with that I was able to open the browser and navigate to ...
3
votes
1answer
981 views

Java + Selenium + log4j: How to write generic function for Logging in pagefactory? Possible?

I have written selenium framework using page object design pattern. To make it better I am also using PageFactory. Example: BasePage.java @FindBy(xpath= FinalLocators.userName) WebElement uname; @...
4
votes
1answer
2k views

TestNG: Multiple suite files are not running but single xml file is running multiple times

This is my testng.xml file: <suite name="Suite1" verbose="1" parallel="true" thread-count="5"> <suite-files> <suite-file path="xml-files/live.xml"></suite-file> ...
0
votes
0answers
52 views

org.openqa.selenium.ElementNotInteractableException: element not interactable

public static void month(WebDriver driver) { driver.findElement(By.xpath("//label[text()='Onward Date']")).click(); while(!driver.findElement(By.className("monthTitle")).getText().contains("...
2
votes
3answers
209 views

Drag & Drop issue in selenium web driver

Drag and Drop not working..as my drag and drop area not having 'Frames' i didn't use switchTo() here. Actions action= new Actions(driver); //driver.switchTo().frame(0); WebElement drag=...
3
votes
1answer
64 views

How to resolve NullPointerException error while implementing POM with cucumber framework

I am getting java.lang.NullPointerException while executing my test case, I am using Page Object Modle with cucumber framework in my maven project, following are the code snippets BoxJunitScript.java ...
4
votes
3answers
124 views

How to autoupdate Chrome-driver in Selenium?

Every now and then when the Chrome is updated, the existing chrome driver used in the script becomes invalid and the below error message is displayed: selenium.common.exceptions....
1
vote
1answer
156 views

It is impossible to create a new session Got this error

"It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible" Got this error for running script in selenium.....
0
votes
2answers
89 views

Can't switch control on elements of a chatbot using selenium in python

I am trying to send a message as input to chatbot to check the response but when I am trying to send a message to a chatbot, I need to click on the input box where one can enter a message. But it is ...
4
votes
4answers
3k views

How to test electron app using selenium

In order to test an electron application. How does one use selenium to identify its elements or using F12 dev tools? As in order to write a selenium script one would have to identify the elements ...
1
vote
5answers
2k views

How to log out in facebook using python selenium?

I want to know how to log out in facebook using python selenium. here's my code: from selenium import webdriver from selenium.webdriver.common.keys import Keys import time #from selenium folder ...
2
votes
2answers
366 views

Automated GUI Testing HTML embedded Desktop Application

I have the exact same problem as in this post Automated GUI Testing of MFC/Dynamic HTML embedded Desktop Application This were an old post but maybe there are new solutions available. I have written ...
0
votes
2answers
4k views

Can we use Data Driven approach with Page Object model using Page Factory, any example or link will help

Can we use Data Driven approach with Page Object model using Page Factory, any example or link will help. I am trying to implement POM with PageFactory but at the same time I want to make it data ...
0
votes
1answer
2k views

How to save an webpage as a xml file using Python and Selenium?

I want to open an xml webpage and after opening the webpage, I want to save the xml content displayed in the webpage as file1.xml file. What I tried: from selenium import webdriver import os from ...
1
vote
4answers
845 views

How to use automation to test an application that terminates all other sessions?

I have a Test case in which I logs into the application, then on the Home page there are 7 links and I need to perform testing for all these 7 links by clicking each link and performing a series of ...
0
votes
2answers
678 views

I want to enter customer name in search box and click search icon next to search text box

Here is my HTML code, <div class="input-group-btn search-panel dropdown open"> <input type="search" id="footerSearch" class="form-control search-input search-filter-component" name="x" ...
0
votes
1answer
77 views

Webdriver setup error in Eclipse, Mac OS X Catalina

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018. I've installed Gecko driver already through terminal and it's ...
0
votes
6answers
2k views

Mandatory fields in selenium webdriver not changing the color of the dropdown from red to blue once value is selected?

I am new to Selenium Webdriver , I have an application build in angular 2 and trying to select values in drop down which are mandatory. 1) Select a value from a dropdown; initially the dropdown is ...
3
votes
1answer
4k views

List of webelements getting cleared during my test run?

I'm trying to compare two different tables using the method called VerifyOrderSummary located at the end of the main method below. public static void main(String[] args) { // TODO Auto-generated ...
0
votes
1answer
2k views

How to handle OTP screen in Selenium Webdriver?

How to handle OTP screen which is generated from API in Selenium Webdriver-
4
votes
2answers
1k views

How to pass arguments to selenium from autoit script

Autoit has a order value ,which I want to pass it to database as argument to get table contents of that order id. I tried passing from command line ,but I don't want the arguments to get passed from ...
3
votes
1answer
802 views

Selenium & Adwords - How am I getting logged out?

I am currently building a reporting tool with Selenium on Adwords. (And no, I cannot use Google's API because it doesn't provide the functionality I want). I am trying to avoid logging in and ...
1
vote
1answer
59 views

How do we generate load in the queue using selenium?

We are trying to generate videos(video streaming via Youtube URL's) in the queue. Some of the users will be watching the videos in FIFO Format so we would like to know the process where we can push ...
0
votes
1answer
105 views

How can I solve OutOfRangeException on using Selenium C#

I was faced with the below problem while trying to run a data driving testing and have tried to resolve it but nothing seem to be working for me. Please could you take a look at my code and tell me ...
0
votes
2answers
60 views

How to locate a link using page object model after mouse over

When I hover over login text there are list of links, i need to select Infostore using Page Object model approach. I am new to Selenium could any one help. I have the outer HTML for you: <div ...
0
votes
1answer
840 views

How to get the Indexes of all columns In a Single Row using Selenium WebDriver and C#?

For single web element in that row i got index..for multiple column in a single row how to get the index: IWebElement colelement = driver.FindElement(By.XPath("//div[@id='grdBooking']//table//tr/ th[...
2
votes
2answers
119 views

Capturing http errors and customizing the message in webdriver

how to Captur http errors on web page such as page not found, 500 Internal server errors and customizing the message in webdriver.
1
vote
2answers
89 views

Cannot locate elements on this page. Firebug comes empty with status as loading. How to automate it ? (I wish to click OK)

I want to automate this page and click Ok Button, but the page is not displaying in HTML in Firebug and status is coming as "Waiting for ..." In such cases how to automate the click without elements ?...
1
vote
3answers
3k views

Python Selenium Find Button

I have a Website were I want to click a button, but I can't find in the button in the HTML script, what I have to write in my Python script? Later I want to have something like driver....
0
votes
2answers
231 views

How to add row elements in selenium webdriver using java?

I have written code like this package testpk; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import java....
0
votes
2answers
49 views

User Acceptance Tests with mouse/keyboard capture and picture compare

We have several Angular applications (Micro UIs) and they are all 100% covered by our UATs (User Acceptance Tests) written with Protractor (Angular Test Framework based on Selenium). There are ...
1
vote
2answers
813 views

Parameters with DataProviders

Is there any way to use Parameters with DataProvider together in Selenium ? @Parameters({"safaf"}) @DataProvider(name="sss") public void hhhhh (String safaf){ }
3
votes
1answer
856 views

Unable to run Appium Version 1.3.6-(Ophiuchus) on Yosemite for Testing Android App on real device

These are my settings: My SDK path: -/usr/local/adt-bundle-mac-x86_64-20140702/sdk My APK path -/usr/local/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/Setmore.apk Given Package name, Launch ...
0
votes
1answer
28 views

Having trouble scraping data from website with Selenium

I've tried a couple different routes to get this to work but I've had no luck. 1) driver= webdriver.PhantomJS(executable_path=r'C:\Users\x\Downloads\phantomjs-2.1.1-windows\phantomjs-2.1.1-windows\...
0
votes
3answers
340 views

Test cases stop execution for next test cases after using soft assertion

I have used soft assertion in my test cases, but it stops the execution of all the next test cases. what I know if we are adding soft assertion then particular test case should fail and it should jump ...
1
vote
1answer
513 views

Exception generated after exporting code as runnable jar

D:\RhythmFileDownload>java -jar fileDownload.jar Starting ChromeDriver 2.28.455520 (cc17746adff54984afff480136733114c6b port 36946 Only local connections are allowed. Apr 03, 2017 6:14:23 PM ...
3
votes
2answers
68 views

Script debugging on AJAX base web application. Can I bypass my dependent module test script execution in Eclipse?

I'm testing a web application in which all web controls are loaded dynamically using AJAX. I have a test script project in java Eclipse IDE. Here is my problem. If, for example, I am debugging a test ...