Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

5
votes
6answers
20k views

Desktop Application testing using selenium

Is it possible to test desktop applications using selenium? Suppose we have a simple application like gtalk. A desktop application, can we automate that application with selenium.
3
votes
4answers
214 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
1answer
18 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 ...
12
votes
6answers
17k views

Which locator do you use with Selenium: CSS or XPath?

I have heard that, when using Selenium, the CSS Locator has better performance than the XPath Locator. Which Locator do you use in your tests? Have you seen a great performance improvement when ...
0
votes
1answer
55 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 ...
1
vote
4answers
2k views

Selenium, monitor network, captureNetworkTraffic command not available [duplicate]

I need to know if an application is requesting one beacon via an image or XHR request. Manually I test it via the network tab in FireBug or monitoring the proxied requests in other browsers... ...
15
votes
4answers
17k views

Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver?

If yes, how is it called, or where can I find more info about it? (I'm not talking about using WebDriverBackend.) If not, what alternatives are there?
0
votes
2answers
6k views

How to handle sub child windows(more than 3) using Selenium Web Driver with Java

I am using Selenium Webdriver with Java, and I need help handling sub child windows. I have to handle four child windows. Main window- Child window- Grand child - (to reach 5 child windows) I ...
1
vote
1answer
80 views

Failed to connect to Safari driver through Selenium Grid

Getting the following exception when trying to run the selenium tests on Mac- Safari using Selenium Grid. I could see the safari browser on Hub console, but when running the tests getting the ...
6
votes
2answers
191 views

What are the advanced tools/technologies used in Automation testing? [closed]

This is the very interesting question asked to me in 2nd technical round of interview. I have told him about advanced automation tools like- Selenium, Appium, Selendroid, Sikuli. Is there any other ...
8
votes
3answers
49k views

How do I work with dropdowns in Selenium Webdriver?

This is a canonical question, intended to provide a comprehensive answer to many related questions I understand the basics of working with Selenium Webdriver; I can navigate to pages, click buttons, ...
0
votes
2answers
764 views

I want to select the value from the dropdown

I am testing www.paytm.com In that I have filled in the mobile number but I am not able to focus and select the mobile operator which is present in the dropdown just after the phone number section. ...
2
votes
2answers
552 views

How can I bring Chrome browser to focus when running a Selenium test using ChromeDriver on Mac?

When executing a Selenium test with ChromeDriver, I would like to bring the test browser into focus to see the actions taking place. The way I am able to do that now is by manually clicking the ...
1
vote
2answers
80 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
0answers
28 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
7
votes
4answers
2k views

Running tests in parallel using Jenkins Grid plugin

I have Jenkins 1.499 running Watir-Webdriver tests on a Windows 2008 (64bit) server alongside the Grid 2 standalone server (and Jenkins Selenium Grid plugin). I can run my tests through the ...
0
votes
2answers
60 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
0answers
27 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"...
2
votes
3answers
12k views

How to run all Selenium test cases via batch file

I am a noob in Java and automation so please bear with me if I get the terminology wrong. I have a class file that can open a browser and navigate to google.com and then closes the browser. There’s ...
0
votes
0answers
17 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 ...
2
votes
3answers
5k views

Selenium Web driver and Mozilla Firefox Compatibility

Currently am using selenium-java-2.53.0,can you tell me which is the most stable FF version for it.
1
vote
0answers
21 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
14 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
15 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
95 views

How to locate Facebook POST button using Java selenium web driver?

Code: driver.findelement(By.xpath(".//*[@id='js_2y']/div[4]/div[2]/div/div[2]/div/button")).click(); Every time I try by locating xpath, it's gives an exception, could not locate element. May 04, ...
1
vote
1answer
66 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
68 views

Running parallel scripting in Selenium Web driver for Firefox, do I need Selenium Grid?

I have a process, using Selenium Web driver for Firefox, for automatic look up for information on one specific site. Due to the volume of the data being looked up, I will need to run parallel ...
1
vote
1answer
68 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 ...
3
votes
6answers
76 views

Automation tool with record & playback option [closed]

As I know we have selenium IDE tool to record and playback our automation script..while recording in ide some Ajax function and date pickers are not working properly..I want to know is there is any ...
0
votes
0answers
33 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
22 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 ...
6
votes
0answers
247 views

select_by_value causing odd issue with the DOM

I'm new to Python and Selenium testing so please forgive me if this isn't written right. I've been asked to look at the test that does a few actions on a form. The form has 2 text fields, a drop down, ...
0
votes
2answers
3k views

Setting TestNG test case result as PASS/FAIL as per my requirement

I have one requirement, I need to read the test data from the excel sheet and after the test case execution I need to write in to excel sheet as PASS/Fail/ Skip. I have used TestNG framework,Below ...
0
votes
1answer
45 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
0answers
47 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.
-1
votes
1answer
65 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
62 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 ...
3
votes
3answers
117 views

How To Handle Dynamic Changing IDs In XPath?

Example : //div[@id='post-body-3647323225296998740']/div[1]/form[1]/input[1] In this XPath id "3647323225296998740" Is changing every time when reloading the page. How to handle this type of ...
3
votes
7answers
230 views

How to verify images in selenium WebDriver?

WebDriver does not provide direct any function to image verification, but we can verify images by taking two screen shots of whole web page using “TakesScreenshot” webdriver function, one at script ...
0
votes
1answer
59 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
39 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
2answers
84 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"?&...
3
votes
4answers
135 views

What to ask programmers before automating with Selenium

What points should I discuss with frontend programmers when preparing a product on which, as a tester, I will use Selenium to automate? I am referring to things like, no dynamic ids for elements etc. ...
1
vote
1answer
35 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
17 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
votes
2answers
109 views

How should look test in webdriver with different Test scenario

I have to test demo.opencart.com. Here is my scenario: Test scenario: 1 Open browser and go to Democart 2 Change currency to GBP (top left dropdown) 3 Search for “iPod” using text search 4 Add ...
0
votes
1answer
45 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 ...
5
votes
2answers
68 views

Firefox browser doest not shows saved bookmarks, addons while launching in Selenium

When I am running software web application's tests In Firefox Browser using selenium WebDriver, It Is not showing me any bookmarks, addons, saved passwords etc in that browser. Have you observed this? ...
2
votes
3answers
83 views

What do I need to do if dropdown takes more time to populate 1st element from dropdown list?

What do I need to do if drop down take time to populate 1st element from drop down list? Select Cdropdown = new Select(driver.findElement(By.xpath("//select[@id='ClientId']"))); Cdropdown....
0
votes
1answer
95 views

Which Firefox version is more compatible with Selenium IDE and Firebug? [closed]

Firefox Browser compatibility with Selenium IDE and Firebug Plugins or addons.