11
votes
What do I need to do if dropdown takes more time to populate 1st element from dropdown list?
Do you think that time is the problem here?
If so try to increase the time you are providing in Thread.sleep(); and see it that works out for you.
If its not the time, then did you try to find out ...
11
votes
Unable to scroll down to bottom of div with data loading dynamically
Check below are the various methods to scroll your web page up & down:
Scroll Down:
import org.openqa.selenium.JavascriptExecutor;
WebDriver driver = new FirefoxDriver();
JavascriptExecutor jse =...
10
votes
Running WebDriver without opening actual browser window
You used to be able to use PhantomJS for this, but since PhantomJS itself is discontinued, so is the Selenium PhantomJS driver.
The good news is, that you can simply use Chrome. Chrome itself has ...
10
votes
What are some tools for testing Mobile web apps?
There are a number of tools available for testing mobile apps:
a) Robotium
b) Uiautomator
c) Espresso
d) Appium
e) Calabash
But my experience -I can suggest you Appium is the best tool for both ...
Community wiki
10
votes
Accepted
How do I split my PageObject Model classes?
No. Do not just split your pageObject into pageObject2, 3, 4, etc. This goes for all programming - split your classes logically by function, not arbitrarily!
Your page object should be the source of ...
7
votes
How do you block Google Analytics from Selenium automated visits?
It's not very well documented, but you can also implement request blocking by passing the host-resolver-rules option to chrome and mapping the domain to localhost or an invalid IP. Something like this ...
7
votes
How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?
Page Factory Pattern is like an extension to Page Object Model , but Page Factory is much enhanced model. To start with, we just need to import package org.openqa.selenium.support.PageFactory
"...
7
votes
How much SQL knowledge do I need to learn Selenium Testing
For writing Selenium tests itself, none. Selenium does not use SQL.
Now if the application under test uses SQL, maybe you need a bit of knowledge to setup test data for your tests. For basic SQL ...
7
votes
How to verify two images using Selenium WebDriver?
Selenium is a software library to locate elements on web page and interact with them. To deal with images, you need to use different library. Selenium can provide screenshots (images) but you need to ...
6
votes
How to download a file using Selenium's WebDriver?
I made my own version of the downloader, by using an Ajax request and returning the bytes. Has the advantage that it uses the browser directly, so authentication and cookies do not need to be dealt ...
6
votes
Accepted
How to take ScreenShot & save it with different filenames by using Selenium & Java?
Two options:
Generate a unique filename for each save, by appending a timestamp or a GUID.
Also, see this question.
public void screenShot() throws IOException, InterruptedException {
File scr = ...
6
votes
Accepted
What is the hierarchy to use for finding elements - ID, class, name, xpath?
My main criteria is readability and maintainability.
Speed has never been as issue for me. There's other parts of the test frameworks I use that have much more significant speed issues.
The basic ...
6
votes
What are the things that one must consider while learning Selenium Webdriver Automation framework?
This is going to be blunt. I don't know a not-blunt way to say this.
First, learn to code. Working with Selenium, no matter what your toolkit happens to be, is writing code. If you don't understand ...
5
votes
What are some tools for testing Mobile web apps?
Top tools for testing mobile apps:
Appium: Appium is an open-source tool for automating native, mobile web, and hybrid applications on iOS and Android platforms. Appium is "cross-platform": it allows ...
Community wiki
5
votes
How to handle "Time out receiving message from the renderer" in chrome driver?
I am not saying this is the solution but I want to share my experience after investigating a day on this. The problem with our site was actually because of the time it took for a third party to load a ...
5
votes
Can I use Selenium to do Desktop Application testing?
https://github.com/2gis/Winium.Desktop
Winium.Desktop is an open source test automation tool for automated testing of Windows application based on WinForms and WPF platforms. Winium.Desktop.Driver ...
5
votes
Can I use Selenium to do Desktop Application testing?
Selenium does not have the capability to automate the desktop applications.It cannot recognize the objects in a desktop application. Selenium drives the testing using the driver object that identifies ...
5
votes
How do I split my PageObject Model classes?
I think that you should create a page object class for each page of the site.
If you have a single page site, you can create page widgets instead of page objects.
The page widgets will correspond to ...
5
votes
How to minimize the browser window which was launched via Selenium Webdriver?
Short answer to your question: Unfortunately, Selenium do not provide any built-in function for minimizing the browser window, there is only function for maximizing the window. But there are some work ...
5
votes
Unable to enter the text in a text box
You may try with javascriptexecutor-
Check below code-
driver.switchTo().frame("WallItemItemDetail_ifr");
// select the editor and do the input
WebElement TextBox = driver.findElement(By....
5
votes
Accepted
Are there any non-selenium based tools for Automation testing?
I find MITM proxies and Mocks/Stubbing to be the most advanced pieces of Technology in Automated Checking.
By using these, it makes it far easier to:
Create repeatable, consistent checks
Decrease ...
5
votes
How to verify two images using Selenium WebDriver?
Use Sikulix API. Sikuli is a library that will help you compare two images or recognize images when they are displayed on your screen. After the said image is displayed, you can click on the ...
5
votes
Accepted
Not able to find the element to click | Selenium Webdriver | Add New User Issue | Getting java.lang.nullpointerexception
Welcome to SQA.
Instead of me investigating what happens in this particular case, I think it will be more helpful for this and similar questions to understand how to
read stacktrace
see an actual ...
5
votes
Accepted
how do perform menu list selection in web application using selenium?
You can use the Actions API for that, given that the browser you use supports it. The following should do the trick with Chrome:
Moves the mouse over the "Admin" button
Waits until the "User ...
5
votes
How to handle web element(enable button) having same Xpath?
In my case, How I worked on this same scenario:
Suppose if you have 3 buttons with the same XPath-like in my DOM:
<input type="submit" id="button" value="Edit"/>
<input type="submit" id="...
5
votes
How to get max character count for input fields with selenium webdriver
You can find the field and get the maxlength attribute
max_length=find('input#id').getAttribute('maxlength')
In the IDE I think it would be something like this to store it in 'x':
<td>...
4
votes
How to handle "Time out receiving message from the renderer" in chrome driver?
So I've solved this, but my solution is an awful hack. The only thing it has going for it is that it has worked, at least for us. Here's the code:
Here's the code at the center of the solution:
...
4
votes
Advanced selenium webdriver tutorial/course
Some good Selenium tutorial for beginner/Intermediate/Advance are given below :
1 - ToolsQA
2 - Guru99
4
votes
Accepted
How to set a value for a variable in Robot framework test case?
The syntax is cumbersome, but there are a couple things you can do.
If you don't care about the message returned by the first keyword, you can use Run keyword and return status. This is perhaps the ...
4
votes
Accepted
Unable to select text from dropdown - Gmail.com Month Dropdown
WebElement monthDropdown = driver.findElement(By.xpath("//div[@class='goog-inline-block goog-flat-menu-button jfk-select goog-flat-menu-button-focused goog-flat-menu-button-hover']"));
// Select ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
selenium-webdriver × 545selenium2 × 508
automated-testing × 214
java × 92
browser-automation × 45
c# × 31
testng × 29
python × 28
xpath × 27
test-automation-framework × 20
robotframework × 16
javascript × 12
junit × 12
selenium3 × 12
page-objects × 10
test-design × 9
selenium-ide × 8
nunit × 7
chromedriver × 6
jenkins × 6
mobile × 6
phpunit × 6
manual-testing × 5
test-management × 5
uiautomation × 5