Tag Info

New answers tagged

0

Poll for the maximum acceptable response time. Decide the longest response time you are willing to accept. Then poll for that long. Set your poll timeout such that: You cannot accept a longer response time, even if the element were to appear on the next poll cycle. You can accept a shorter response time, no matter how grudgingly. I like to be generous ...


1

There is nothing wrong with documentation. Need to specify page object classes as public classes.So moving GoogleSearchPage to different file and specifying it as public class should work fine. the way suggested here is also correct but is just an alternative.


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.


0

Why didn't you code your locator like this? driver.findElement(By.xpath(".//a/i[@class='icon-edit']")).click(); Seems like it would have still worked and would have been simpler.


0

Netbeans and Eclipse, you know, they are just an IDE. As far as I know, both of them do not have any official plugin(s) for Selenium, so I agree there isn't any difference. Anyway, consider your experience, I suggest Eclipse for you, because you can find plenty of blogs/web pages(etc.) to help you write test class.


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...


0

Try to upgrade to the latest IEDriverServer: 4.43.xxx: http://selenium-release.storage.googleapis.com/index.html?path=2.43/ Also you can try both x86 and x64 versions.


1

Updated Answer You have to import the RestAssured class incl. method as static. import static com.jayway.restassured.RestAssured.expect; Or you call the method on this way: RestAssured.expect() Useful Links Java Doc Getting started


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; ...


0

It makes no difference. Both support JUnit and TestNG as testing framework. They also support Maven and Ant as build tools. In my view, all important things to develop automated test cases with Selenium 2 / WebDriver are present. My experience is, that NetBeans needs more time (just seconds) to start and use a little bit more memory. But seriously: it's ...


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

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

I can see several problems in your code. Paramaterized @BeforeSuite method with no data provider. Your @BeforeSuite method (main()) takes a parameter (args), but you have not told TestNG how to provide a value for that. That's what that exception message means. Calling test methods. When you run under TestNG, your @BeforeSuite method calls your test ...


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 ...


2

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


4

You mean to say in one class multiple methods you want to run, then use below code and try. @BeforeTest public static void beforeMethod() { driver= new FirefoxDriver(); } @Test public void main1() { driver.get("http://indianrail.gov.in/pnr_Enq.html"); driver.findElement(By.id("element")).sendKeys("1234567890"); String ...


0

You can try this code milinpatel17.wordpress.com/2014/07/02/web-page-link-test-using-selenium-webdriver It has worked very well for me..



Top 50 recent answers are included