Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
16 views

When i run my appium code during run time i am getting this error “Exception in thread ”main“ java.lang.NoClassDefFoundError”?

I have written a code to launch my app and click on the element, the app is launching but after launching when it is trying to click, I am getting an error which I am not able to understand why. ...
0
votes
2answers
39 views

Write Selenium Result output into Excel Sheet

I am having output results in console need to import in to excel any advise. for (String available : list1) { System.out.println("Available hotels: -------"+available); My results will ...
0
votes
0answers
14 views

How can I set the language of Safari and launch using Selenium?

I need to launch the Safari browser for automation with a specific language(Korean) for automation purpose. I am using selenium with python for automation. How can I do that ?
0
votes
1answer
33 views

What is the purpose of this constructor pattern

class LoginPage(){ ///line of code public LoginPage(WebDriver driver) { this.driver = driver; PageFactory.initElements(driver, this); } Can someone please explain the ...
0
votes
3answers
74 views

Unable to click on Xpath element even the correct path

Unable to click on Xpath element even the correct path,tried with Webdriver wait and Javascript executor still no use. My code: driver.findElement(By.xpath(".//*[text()='Next']")).click(); Page: &...
1
vote
1answer
40 views

Selenium WebDriver: Setting date on date picker [on hold]

I am automating a web application which has multiple date pickers in them. I am sending values in them by using javascriptExecutor. IJavaScriptExecutor js = (IJavaScript)driver; string jscript = (...
2
votes
4answers
80 views

Functional testing during or after development?

I'm a newly hired junior QA engineer in a company who never had QA before. I'm writing cucumber + selenium test for multiple projects and one of them is still in active development and is evolving ...
-2
votes
2answers
71 views

Selenium WebDriver issue

I am getting: "Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from FirefoxDriver to WebDriver" error in the console I have added jars files ...
1
vote
1answer
39 views

Calling a test suite from another Test Suite/Test Case

As per my project requirement I need a Test Suite to be called from another Test Suite, is this anyhow possible in Katalon Studio? There is an inbuilt function for calling Test Cases but there isn't ...
1
vote
2answers
49 views

FF browser is opened but throwing error

I am a beginner to Selenium and I am using Selenium 3.14, java 8, geckodriver-v0.24.0-win64. Firefox browser is opened successfully though i am getting below error messages. 1550013525709 ...
0
votes
3answers
47 views

Finding an element that have multiple on the page

I am using Ghost Inspector and I have an element on the page that has an attribute that we use for QA. But there are more than one of them and I need to find the second one on the page. If i just ...
0
votes
0answers
38 views

Writing selenium tests againgst bootstrap Checkboxes

I have currently a big Problem to click on a Checkbox in a bootstrap designed GUI. In Html it appres like this: Does someone know how to press the Button of this checkbox? Because the controls are ...
0
votes
0answers
25 views

I am facing some issues while running appium. can anyone tell the answer

Session CreatingException in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An ...
1
vote
0answers
14 views

unknown error: cannot create temp dir for unpacking extensions when trying to start Chrome from a LOCAL_SYSTEM service

We are trying to get our automated webtests working independently of what version of Chrome we're using. These automated tests work as follows: We have a Karaf container agent running as a service; ...
0
votes
1answer
32 views

App is launched but not able to perform further actions (App automation using appium)

I am new in mobile app automation I have successfully launched Google Playstore application in my android device. but,i can not click on next tab "GAMES". My Code package com.automate.app.screens; ...
0
votes
0answers
32 views

calling TIS/TSM in non-main thread environment

macOS 10.14.3 Chrome 72.0.3626.96 Chromedriver 2.46 While trying to execute following code I receive an error: import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa....
-1
votes
0answers
17 views

Permission denied to access property “__rocketLoaderProxiedHandler”

Code: package com.webdriver; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa....
0
votes
0answers
12 views

The result set has no current row error (Database automation testing using selenium webdriver [duplicate]

I am using the following code in selenium, but I am not able to retrieve data from database. I am getting the error "The result set has no current row" public class Auto { public static void ...
0
votes
0answers
27 views

{“method”:“id”,“selector”:“continent”} Command duration or timeout: 10.04 seconds [closed]

package com.webdriver; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import ...
0
votes
1answer
45 views

Null Pointer Exception

Pls help me with this error "java.lang.NullPointerException". Chrome driver is getting initiaze properly but at the time of running test it is giving this error.In my test class I'm extending setup ...
0
votes
3answers
44 views

Get Driver Version using Selenium with C#

I am testing with C# & Selenium & Selenium.Chrome.WebDriver (Nu-GET Package, Version 2.44.0). Now I am searching for a Method which gives me the actual Version of the current runnig driver. ...
2
votes
1answer
42 views

how to click an available time slot in customized UI calendar

I have customized UI calendar attached in screenshot having date and time slots to book some test drive. actually the booked slot div contains some class and available slot contains some class name . ...
1
vote
1answer
51 views

Unable to locate element Selenium: Shopify Payment Gateway [closed]

I receive this error whenever I try to click on the Shopify credit card text field. org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"id","selector":"...
0
votes
1answer
26 views

I have to open a web page from desktop application. Clicking on a link in desktop application opens the web application

I have to open a web page from desktop application. Clicking on a link in desktop application opens the web application. Then I am logging into the web application and validating few results. I am ...
0
votes
2answers
28 views

How to find an new element recently added on webpage dynamically after drag and drop in selenium?

Currently I am working on a webpage which has rappid js components. I am trying to achieve dragging and dropping of elements from the palette as seen in the screenshot to the grid. The element I drag ...
0
votes
1answer
46 views

Use Login method before test

I use POM pattern in Selenium tests. To run tests OpCreate and OpEdit, a user should be logged in. I have positive test for Login, but how to run Login every time OpCreate and OpEdit tests are run? ...
0
votes
1answer
46 views

How to get src link using Selenium?

The task is simple: to extract the link of an audio of pronunciation for a word from a Yahoo Dictionary Webpage: e.g. Yahoo's Dictionary@ "real" Using "Chropath", I can locate the Xpath of the ...
0
votes
1answer
32 views

Find element and click on it in a complex structure

I have following structure on my web-site. //New Box <div> <div> </div> <div> <div> <div> </div> <...
0
votes
1answer
24 views

How to get content of clickable element. Facing issue to read content after clicking an element

I have tried below code: if(webElement2.isDisplayed()) { webElement.explicitWaitToClickElement(4,webElement); webElement2.click(); } String tagContent = (String) ((...
0
votes
2answers
31 views

Find when iframe is closed in selenium

I am writing tests on a third party system, that utilizes iframes. I have been going through my code and eliminating places where I have been using waits/sleep for 2-5 seconds, and looking more for ...
-1
votes
0answers
48 views

Unable to run parallel tests using ThreadLocal feature for a webdriver

I am creating a framework where there is a Base class which contains the @BeforeTest method for driver initialization and this driver is stored inside the ThreadLocal static variable. In the @...
1
vote
0answers
41 views

Running selenium tests parallel on different website using grid

We want to setup a Selenium Docker Hub Node Environment.I have successfully set it up using following: docker run -d -p 4444:4444 --net inpronet --name selenium-hub selenium/hub:3.11.0-dysprosium ...
1
vote
2answers
43 views

The xpath in selenium can not locate the path

I'm trying to add some text to a textbox in my html but the xpath cannot find the path and I don't know why. this is my code: PropertiesCollections.driver.FindElement(By.XPath("//*[@id='from0']"))....
2
votes
2answers
53 views

Testing React web application in Selenium(Java)

In my work I use Selenium(Java) to automated test. Now web application will be rewritten to React, and there's my question: Automating react application using Selenium under Java is good choice? Do ...
0
votes
2answers
64 views

Selenium with Google search results

When you search for something in Google and get the results, it is not easy to locate the elements, using Selenium, since Google uses classes like <div class="kno-ecr-pt kno-fb-ctx gsmt"> ...
0
votes
1answer
32 views

Not able to switch back to the parent window of Internet Explorer 11 using selenium (java)

Description: I know how to switch back and forth from Main window to Child Window and vice versa. But for some reason the same code doesn't seems to be working on Internet Explorer 11. I have ...
0
votes
0answers
18 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 --nodeconfig /absolute/path/.json Ran my script: DesiredCapabilities cap = new ...
1
vote
1answer
27 views

Interacting witrh elements in the new link using Selenium(Python)

I am writing a python script for interacting with the spotify webplayer. Initially I have to login by entering the credentials.After I click the log in button,I get directed to the webplayer page. ...
0
votes
0answers
22 views

Getting this error when i run my java appium script

When I save and run the code the compiler is showing error with respect to DesiredCapabilities I thought I might have made an error while importing the jar so I uninstalled everything and installed it ...
0
votes
2answers
68 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
0answers
28 views

Running Selenium and Headless Chrome on AWS Lambda using Python

I need to do a Proof of Concept of whether I can run Headless Chrome on AWS or not and I tried to implement the solution from the below link: Running Selenium and Headless Chrome on AWS Lambda ...
0
votes
0answers
36 views

Multiple url passing

browserName=chrome adminUrl =https://landingsite.webapp.com/ AdminUserName =demoeu@yopmail.com AdminPwd = 1234 landingUrl=https://testing.app.com/ AdminUserName =demoeu@yopmail.com ...
0
votes
1answer
41 views

Can't find element locator

I have created this Keyword: Validate Header Wait Until Page Contains id=outputtext-text-Header:ApplicationHeaderCoachView1:ApplicationHeaderCoachViewInner1:Output_Text1 Element Should Be ...
0
votes
0answers
16 views

Couldn't find iframe on test case

I have this test case: Select Frame id=coach_frame63454108.cf1 Wait Until Element Is Visible ${ap.gui.header.appname} Page Should Contain Element ${ap.gui.header.appname} Page ...
0
votes
2answers
52 views

How to integrate/merge multiple extent reports into one single report using selenium, extent report v3xx

I am running selenium scripts using jenkins jobs/multijob and its creating multiple html reports for different modules. How can we combine/merge all html reports to one single report? Extent report ...
0
votes
1answer
45 views

PageFactory is deprecated in C# (.NET) - what to use instead of that

I was using for a long time PageFactory (in Java). Now writing tests in .NET I found out it's deprecated. Right now I just initialize all page objects when application starts using [BeforeScenario] ...
-1
votes
1answer
24 views

(C#) Selenium - How to validate if a tr exists in an HTML page

I need to check in an HTML page if the "tr" exists, if the td does not exist that it condonue to execute the code and does not present an error for not having found, as it presents in the following ...
0
votes
1answer
42 views

Selenium test fail when browser is minimized on windows server 2016

I do have this application that I wrote in selenium (java). When I deploy the test to my (windows 2008) remote server, it works fine. When I say fine, I can run the test and minimize the browser, even ...
2
votes
0answers
13 views

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

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 seleniumAddress: 'http://localhost:17556/', ...
0
votes
1answer
25 views

Finding an element by tagname's value

In our app that we are using, there are widgets on the page, lots and lots of widgets. There is a HTML tag called widgetkey in it, with an 'id' value associated with it. Here is the exact HTML: <...