Tarun
  • Member for 10 years, 8 months
  • Last seen more than a week ago
Selenium: How to identify the button WebElement
34 votes

By.xpath("//button[contains(.,'Add Strategy')]") By.xpath("//button[contains(.,'Submit')]") Notice that it is same as: By.xpath("//button[contains(text(),'Add Strategy')]") By.xpath("//button[...

View answer
Security testing resources
Accepted answer
12 votes

For web application security you might find it useful - https://owasp.org/

View answer
"java.lang.NoClassDefFoundError" Error when running Selenium RC script
8 votes

I assume that you are not using stand-alone jar of selenium. Can you download Selenium Server Standalone jar and use it in eclipse. This is the only jar you need from selenium-java as it encompasses ...

View answer
Tools for Server application testing
7 votes

If you are looking for automated UI testing using java then Selenium is worth having a look at....

View answer
What are the trade-offs of using page objects instead of a collection of functions in UI automation?
5 votes

Advantages: Clear separation between test code and navigation code in code base. Easy to comprehend test, for example - Homepage.testLogin(username, password); is more succinct than selenium.type(...

View answer
Check an element through Selenium RC
Accepted answer
4 votes

"element position in upper right corner" - Assert.assertTrue(getElementPositionLeft(buttonLocator).equal("some pixels")) Assert.assertTrue(getElementPositionTop(buttonLocator).equal("some pixels")) ...

View answer
Can the base-url be changed in the same browser session using Selenium RC?
4 votes

You should be able to do so while using browsers with elevated security privileges like *chrome for firefox. So you could just do selenium.open("newURL"); in your test. Problem of changing URL is, ...

View answer
Capturing screen shots in selenium tests
4 votes

I have largely used capturing screen shot when there are errors in page, instead of using it for each and every step. Combination of Selenium + TestNG + fest (Fixture for easy software testing) lets ...

View answer
Can every test be done by automation?
4 votes

How would you automate usability testing of app?

View answer
Where can I find information on getting started with Selenium 2?
Accepted answer
3 votes

WebDriver documents are available at - http://seleniumhq.org/docs/03_webdriver.html http://seleniumhq.org/docs/04_webdriver_advanced.html Does it help?

View answer
Maintaining QTP object repository -best practice for a multideveloper environment
3 votes

I am not QTP expert but one QTP expert told me once that it is best to not use Object Repo as - It makes project heavy when it begins to grow in size. You can not version control object repo You ...

View answer
How to fix “Permission denied to access property 'document'”?
Accepted answer
3 votes

Can you instantiate you selenium object as ? selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.google.com/"); Here *chrome refers to firefox browser and has elevated security ...

View answer
Selenium-2 Webdriver browser support
Accepted answer
3 votes

This discussion might help

View answer
Software testing and QA podcasts
3 votes

May be this - http://itunes.apple.com/us/podcast/google-videos-cem-kaner/id212658036 Check this also - http://www.codingqa.com/

View answer
In house built testing tools
3 votes

We have had success in adding utility methods to existing opes source tools which could be used across org. We heavily use Selenium for front end automated testing. utility methods which have been ...

View answer
Can Selenium and Bromine 3 execute overnight and email the results
3 votes

Bromine is more of test management tool and you could definitely live with out. Though having test management tool has its own advantages. Besides Bromine you could also use - TestLink and XStudio. ...

View answer
How to verify two images using Selenium WebDriver?
2 votes

You can calculate hash of images and then compare the hashes for equality. SO has a question on calculating hash

View answer
TestNG - how to share same browser session between two methods?
2 votes

I don't quite get why you would like to share browser session. UI test methods should be run in the own independent browser. In case you insist, you could use @BeforeClass of TestNG and have driver ...

View answer
Is a web application bug found on the Android emulator more likely than not to be a legitimate bug?
Accepted answer
2 votes

I have never come across a defect which persists in android emulator and not on real device. This has been my experience with both web and android app testing on android emulator 4.0 and above. Though ...

View answer
Selenium: How to set x and y coordinate position
Accepted answer
2 votes

You could use following to get element position run time and use them String xCoordinate = selenium.getElementPositionLeft("elementLocator"); String yCoordinate = selenium.getElementPositionTop("...

View answer
Matching images in Selenium2
Accepted answer
2 votes

For image comparison I could suggest to use - captureScreenshotToString. So you could keep one copy as reference point while other captured run time and then comparing it with already saved copy. But ...

View answer
Selenium RC + Hudson - test runs locally but times out when run with Hudson
2 votes

Try increasing pageLoad, that is - _selenium.WaitForPageToLoad("60000"); b/w I suggest you to not hard code wait period and read it from a method, so you could modify it in one place and have it ...

View answer
Selenium Server and Windows Server compatibility
2 votes

I can say that I have worked with both 32 bit and 64 bit operating system using Selenium Server and the only requirement I am aware of is the - need to have java install on your system to be able to ...

View answer
Selenium.click not working on some anchor elements
2 votes

Though you would be missing testing calendar functionality but if nothing works (as it is not just clicking calendar link but you would also have to navigate to right place in calendar) and it becomes ...

View answer
Why (& how) do Static and Dynamic testing complement each other
Accepted answer
2 votes

Take this requirement example for a calculator program - Calculator should accurately do division of two numbers. After static analysis (testing) you might say - requirements are incomplete as it ...

View answer
Should QA be able to code tests?
2 votes

I see it this way, being able to know multiple facets of testing is +1. This not only earns reputation to you in team but also gives you some insight as to high developers think and develop. And at ...

View answer
Few requests in Jmeter does not get response from server, getting "Socket.timeout" exception
1 votes

This is a network constraint over which you may not have any control. Do you know after what time you get this error? You could play with Timeouts section on HTTP Request Sample and keep it higher ...

View answer
How to know the count of lables or fields in a particular screen using Selenium IDE
1 votes

Reference from Selenium IDE: storeXpathCount: Returns the number of nodes that match the specified xpath, eg. "//table" would give the number of tables. storeCssCount: Returns the number of ...

View answer
Selenium: Ajax Testing
1 votes

You could you wait for condition like this - selenium.waitForCondition("selenium.isElementPresent(\"element locator\")", "waitPeriod") Hence you need to write the wait condition and here in I have ...

View answer
Tools for testing iPhone apps
1 votes

I know WebDriver (Selenium 2.0) has iPhone Driver, though I have not used it myself. http://code.google.com/p/selenium/wiki/IPhoneDriver

View answer