Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

-1
votes
0answers
7 views

The given selector “//*[@id='login-username']” is either invalid or does not result in a WebElement

I am trying to set a value in the text field .I have xpath and the value for the texxtfield stored in a HashMap. public static void textField_SetText(Map map,WebDriver driver){ try{ ...
0
votes
0answers
9 views

Get Coordinates of link that is in canvas

I am doing automation in selenium with RobotFramework in Java.I want to get x,y coordinates of links that are drawn in canvas. I tried to find a solution online but I just got to know that some java ...
0
votes
0answers
10 views

Exception in thread “main” java.lang.NoClassDefFoundError:

I a getting this error , I have already added all the the libraries and dependencies jar file. I dont understand where is the problem ? Error shows like this : Exception in thread "main" java.lang....
0
votes
0answers
16 views

Getting Unknown error While Using latest Verison of Selenium With Microsoft Edge Browser

My Code to launch Browser: System.setProperty("webdriver.edge.driver", "C:\\selenium-drivers\\MicrosoftWebDriver.exe"); DesiredCapabilities capabilities = new DesiredCapabilities("...
0
votes
0answers
11 views

Tools for Data Driven and Keyword driven tests in selenium with python?

I am new to selenium and python, I was watching some videos on data driven and keyword driven tests, the instructor was using TestNG with selenium and I was wondering are there any tools similar to ...
0
votes
1answer
19 views

can we create a software application for the full script of selenium coding we have done?

If we have created some selenium code for web application testing. After completion of the script coding, can we create a java application or something like that?
0
votes
1answer
36 views

Switch case and dropdown in selenium

I am writing code to get state value from the drop-down and depending upon the state calculating the tax rate. I am using switch case statement to define the tax rate for each state. I want to use ...
1
vote
1answer
37 views

Selenium 2 Webdriver: Persistent cookie browser restart

I test a OAuth 2 Login page. It allows me to remember my login. This is done with a persistant cookie. Now I want to test if this cookie remains present after a browser restart which is its intent: .....
0
votes
1answer
25 views

Plugin of Maven - Automated test

I need to run automated test on Bamboo (Atlassian) but i don't know what plugin of maven use. The automated test are with Selenium and Java.
0
votes
0answers
23 views

Selenium EventFiringWebDriver in page object model and refactored

I'm struggling with this one, how to implement EventFiringWebDriver (e_driver) without having a lot of repetitive code. As I'm understanding it, in order to capture finding elements and acting on ...
-1
votes
1answer
56 views

Selenium Testing

I have resetVal() function in javascript as given below. I am unable to figure out how to write selenium test case for reset values. <script> function resetVal(){ document.getElementById("...
1
vote
0answers
13 views

Got an error while build or clean mavan project-Could not initialize class org.apache.maven.index.ArtifactInfo

Hi All when I am try to build or clean the mavan project I got below error can any help me ? Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'POM-...
0
votes
2answers
53 views

Are other classes able to access the webdriver instance when extending test base class? Getting NullPointerException Error

I am getting this error when running the below selenium scripts using TestNG with Selenium Grid. I'm extending the testbase class to access the WebDriver, but I'm not sure if each class is getting the ...
0
votes
2answers
54 views

Unable to locate element throwing a org.openqa.selenium.NoSuchElementException in TestNG

Am unable to click on element after executing a First test second test showing a org.openqa.selenium.NoSuchElementException . My code Here: public class snapooh { WebDriver driver; @BeforeTest ...
0
votes
2answers
51 views

Selenium is not recognizing xpath

When I attempt to search for the following element by xPath, Selenium does not find the the element. Not sure what I'm missing here. driver.FindElement(By.XPath("//input[@type='text']")).SendKeys("...
1
vote
1answer
25 views

SetPageLoad Timeout not working for Selenium web driver

In my webdriver test, I have the below. Despite the SetPageLoadTimeout, the script is still executing the next line before allowing the page to load. driver.FindElement(By.LinkText("MySurvey"))....
0
votes
1answer
17 views

StaleElementException - After using navigate().back()

I'm trying to automate a testcase, where in there are around 30 links in a page. All these links will lead to a new page. And depending upon on a value in the new page, I need to either proceed or ...
3
votes
4answers
196 views

In automation testing do we need to write only positive test cases?

I am currently working on automation project along with another guy. He prepares a test case for the automation and I implement it. Here is my question, generally we use to write test cases for ...
0
votes
0answers
20 views

Getting a stale element exception (Selenium - Java)

I am using Selenium via Java. I am running into a stale element exception and I can't seem to identify the issue. I am interacting with a carousel (see image below). I have placed all the vehicles, ...
0
votes
2answers
16 views

Scroll Issue in Android Automation using SeeTest + Selenium Webdriver

I am using SeeTest + Selenium Webdriver + JAVA for Automating a Android application There is one contact page there are 15 fields . After filling 5th field the keyboard is overlapping the 6th ...
0
votes
0answers
36 views

WebDriverWait until ExpectedCondition ElementVisible

I am creating an automation test framework for Selenium test using Page Object Model and Pagefactory. The website I am testing can create new pages that a person can write content to which is then ...
0
votes
0answers
16 views

How to select an element from bootstrap menu using Webdriver Selenium with c# ? The Menu drop down shows up on Mouse Over

Import Leads How to select an element from bootstrap menu using Webdriver Selenium with c# ? The Menu drop down shows up on Mouse Over
0
votes
0answers
13 views

Sweet alert malfunctions in combination with Selenium's browser.click()

I have a swal: swal({ title: 'Success', text: 'Something', type: 'success', closeOnConfirm: true },function(){ $("#somethingModal"...
1
vote
2answers
78 views

Is my website test approach comprehensive enough? [closed]

I am working on a test automation project for a webpage portal. What I want to achieve is: Perform a HTML encoding conformance test; I have noticed that there are a number of missing tags, un-...
0
votes
1answer
41 views

How to execute a Selenium Java test using batch file?

I have created a batch file containing Java file locations : "% C:/location..." Now , when I double click this file, it opens up eclipse with this java class inside. What I want is that this file ...
0
votes
0answers
16 views

Difference between $(“path”) and $(By.linkText(“text”))? Selenium - Selenide

I need to locate a element, I used the following two ways: $("body.class1 div.class1.class2 div.class3.class5 div.class6.class7 li.classLogin a") .click() But I have problem with ...
1
vote
0answers
18 views

How to Verify link using dataprovider [closed]

I want to verify hyperlink which in under the red border using data provider method. print them 1) User can click on hyperlink 2) Using data provider print the text into the console.
0
votes
0answers
13 views

Verify hyperlink using dataprovider [duplicate]

I want to verify given hyperlink highlighted in redborder using dataprovider How to do it ,please let me know
0
votes
0answers
12 views

Automating Youtube Search - Getting Error

I am getting the error " org.openqa.selenium.StaleElementReferenceException: Element not found in the cache - perhaps the page has changed since it was looked up". Please look at my code below: ...
0
votes
1answer
33 views

How to verify text under <P> tag in selenium

I want to Verify text "No results were found for the query:"under tag in selenium how to verify this text how to take xpath for this div class="fl" style="width: 99%;"> Search Results No results ...
1
vote
1answer
50 views

Selenium delete cookie

I am using Selenium via Java. My test case logs into an account, but when the next test case runs (which happens to also log into an account) it fails since the credentials are still saved from the ...
1
vote
1answer
57 views

Selenium Element is not clickable at point with ExpectedConditions.elementToBeClickable

I have a problem with the following exception: org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (1128, 997). Other element would receive the click... My ...
0
votes
0answers
19 views

how to run selenium scripts in already opened cef based application

How to run selenium scripts in already opened cefclient application.(CefClient is a sample CEF based application). How to get the window properties in selenium c#?
0
votes
0answers
17 views

Selenium automatically disposing the application after 60 seconds

am trying to automate CEF(Chromium Embedded Framework) Based application through selenium. am able to execute the .exe file by using setBinary function. after executing that selenium is not waiting ...
0
votes
0answers
32 views

How do we scroll down in Native app using Appium? Eg: Terms & conditions/

I want to know how do we scroll in native Application. For eg 'terms and conditions' page. I am using Appium using selenium web driver.
3
votes
1answer
50 views

Selenium - WebElement.FindElement() Aware of changes to DOM?

Was just reading this question http://stackoverflow.com/questions/26882604/selenium-difference-between-webdriver-findelement-and-webelement-findelement trying to understand the scope of the ...
0
votes
1answer
43 views

What test frameworks can be used when doing Selenium based automation in C# for functional tests?

I have done some research and found that most frameworks available are either for unit testing or the work on them has stopped. I need to either build or find a suitable testing framework for ...
0
votes
2answers
73 views

how to measure response time for both loading and search time for a website ? selenium

I need to measure response time for website using Selenium and Selenide. Response time of a website: I mean the loading time, I see that there is method to take difference between time before and ...
-1
votes
1answer
58 views

Which are the best course to learn automated QA for a start-up? [closed]

Which courses are the best to help me grasp the foundations of Automated testing? I am currently in a manual QA position doing only Ad-Hoc/regression testing. This is also the only testing we ...
1
vote
1answer
52 views

How to initialize the driver globally in selenium

I wanted to create a separate class to initialize the firefox driver and then use the driver instance in my other TestNG classes. Can someone tell me how to do this and how to use the same driver ...
0
votes
1answer
49 views

Blank Browser launches on Selenium Grid Hub with Every Test Run on Node

Why does the hub keep launching a blank browser before it runs a test on the node? Every time a test starts to run, a blank browser is launched on the hub before it opens the same type of browser on ...
0
votes
1answer
36 views

Is use of priority in TestNG a good approach? [closed]

I'm assigning priority to each test method in a specific class under my automation project. My senior reviewed the script I wrote and mentioned to me that do not use priority instead use the xml to ...
0
votes
1answer
45 views

How to validate if PDF is loaded or not in Selenium Webdriver?

I have a link in Website which will redirect to PDF document after clicking I would like to check if PDF is loaded in the browser or not using selenium I do not want to compare the text/content in ...
0
votes
1answer
58 views

Java code inside a test case

In my code the daily emails generated by java code. Is it possible to write pure java code inside a Selenium IDE automation test case?
0
votes
2answers
56 views

Parallel Testing with Selenium Grid - Static classes have driver issues

I am currently working on an automation project. I have the project itself complete. However, I am now integrating Selenium Grid into my project to run my tests parallel on different browsers e.g (...
0
votes
2answers
69 views

If a test case fails, how to close the browser and move to the next one?

How can i stop the execution of a test case if an exception happen and caught and move to next one. I am using TestNG, Eclipse, Selenium. In my xml, i have: <?xml version="1.0" encoding="UTF-8"?&...
0
votes
0answers
16 views

how to use dumbster

public class Email_Dumbster extends TestCase { public Email_Dumbster(String s) { super(s); } public void testSend() { SimpleSmtpServer server = SimpleSmtpServer.start(); Properties ...
1
vote
1answer
31 views

Automating web app screenshots and inputs [closed]

Good day, I've been working for some time now on a web app and recently my workload has grown tremendously. I have to take presentable (showing correct info and setup) screenshots for our product and ...
0
votes
0answers
12 views

Selenium_Copying entire column from excel without using iterator

Am new to selenium and I have the following query. Query: Am working in a project where I need to copy 4000 values from an excel in a single go and I need to paste that in the list box of application....
0
votes
1answer
42 views

Email content checking

I am doing automation testing. In our web application the employees get daily mail notification. what i need is ,to write test case to check the daily emails. The emails contents are the services that ...