Tag Info

Hot answers tagged

3

Yes, you can run headless with either Headless Chromium or with PhantomJS .. Keep in mind that running with Selenium Grid or SauceLabs is equally as good as running headless.


3

PageObjects The code of automated test cases should be easy to understand and not too complex. If a test fails, we want to know why and this as soon as possible. To allow this exists PageObjects. PageObjects are classes that contains WebElements and every actions associated with those. A PageObject looks like this: class HomePage { WebDriver driver; ...


2

As I know captcha (Some captcha you can test) you can not test using selenium webdriver.


2

Although i do not have much idea about it but i think you can give selenium grid a try. I read on seleniumhq.org that with selenium grid you can create a master slave architecture, where one master machine will control several slaves to send request to a common server. Maybe this can help solve your issue!


1

It doesn't make much difference in terms of the development or scripting. But I prefer eclipse because netbeans tends to occupy a lot of memory and lower system performance. It seems to hang after a couple of hours. In that sense eclipse is more stable than netbeans.


1

Sometimes it so happens that the wait commands do not work. Instead of the wait command of selenium try using Thread.sleep(); command of java. This command will pause execution of the script for the given time...


1

True to edit user3783352's answer but got some permission error. So here is the content of the post referred to in that answer- package <Your Package>; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import ...


1

Selenium/Webdriver is a great tool, but it comes with some overhead you'll have to be prepared to manage. The first is choosing which Programming Language bindings you intend to use. Whatever that ends up being will be the standard for the project for a long time, and depending upon the level of person you hope to use to build it, it can impact your ...


1

Selenium is a tool to drive and verify behavior of web-applications, it should not matter where they are hosted. If you can reach the webserver running the application it can be local or hosted in the cloud, the application should behave the same. If you want to test if the cloud setup can handle a certain load and find its bottlenecks I would look at a ...


1

The Keys points to consider while choosing an automation approach (Data Driven/Keyword based /Hybrid/) are as follows - Is the Application under Test - Data intensive ? - Better of with Data Driven approach then. Is the application more about functional tests (e.g. workflows) - Better to go with a keyword approach - specially if those functional tests ...


1

Gestures - User can perform multiple clicks on submit button / search button occasionally which could result in page reloads / transactions cancelled Image / Video Previews - Between transitioning between thumbnail and playback of videos I have observed not well automated Payment gateway timeouts - During peak transactions there could be timeouts with ...


1

Alternative way to run in parallel is creating separate processes for each run instead of threads. It can be helpful when you are experiencing some synchronization issues or crashes. In this case create batch file and run all suites like: start mvn integration-test -Dsuite="SomeSuite1" start mvn integration-test -Dsuite="SomeSuite2" start mvn ...


1

This is how I implemented a quick utility function to switch to a window based on the title: public static void switchToWindowWithTitle(String title, WebDriver driver) { Set<String> windowHandles = driver.getWindowHandles(); for(String handle : windowHandles){ driver.switchTo().window(handle); if ...



Only top voted, non community-wiki answers of a minimum length are eligible