Tag Info

Hot answers tagged

3

Try to use driver.findElements instead. It returns a list of all WebElements. All means also the not visible elements. Here some code to iterate thru the list and only do something with the displayed items. List<WebElement> elements = driver.findElements(By.className("vfmThumbnail")); java.util.Iterator<WebElement> i = elements.iterator(); ...


3

Short answer: Yes it is a bad practise, unless you have a very very very good reason, do not use implicit wait. This Stack Overflow answers really puts the difference in great detail. I once had someone on my team who thought it was a good idea, until I started researching why all our tests had such a long starting time. Somewhere in our setup the implicit ...


2

I think the Op is asking two questions: If, in the version control system, the code in QA is tagged (or branched) separately from code in development, which version should you use with the Selenium tests? Where should the Selenium tests run: on the developer's desktop or in the QA environment? I don't have enough organization/business/technology ...


2

Run all the tests just right after the build as soon as possible, before deploying to the test environment. Developers should have feedback about their check-ins as soon as possible. Also you say the test-env is used for manual testing, why would you want to risk deploying a non working build. Certainly if you could have run the tests first. In short the ...


2

If QA and DEV environments are equal (have the same dependencies installed, the same build, etc.), there is no much sense to run acceptance tests on both of them, since it will be just duplicated execution and additional overhead in terms of analysing test results on two environments instead of one. Acceptance tests are the tests which provide you ...


2

TestNG has a feature called soft assert. This kind of assert doesn't stop the test when assert is failing. First initialize it: import org.testng.asserts.Assertion; import org.testng.asserts.SoftAssert; public class MyTest { private SoftAssert softAssert = new SoftAssert(); } Then use it in your test: @Test(dataProvider = "getMailUrl") public void ...


2

The prerequisites for starting the object mapping mode are: project is created and opened a connection has been made to the AUT Agent (if this is successful, the "Stop AUT Agent" button on the toolbar will be enabled) an AUT has been configured via the project properties the AUT has been started. Your AUT is successfully started if the AUT can be seen to ...


1

What you are overlooking is one simple fact: if solution what you half-proposed was feasible, Google engineers would be working to make it available for last few years. And in my experience they are VERY smart, it is futile to try to outsmart them (at least for me - maybe you are much smarter). Browsers ARE genuinely different, and packing all the ...


1

If you want all elements that match your selector, use findElements. This will return a list which you can iterate through. List rows = wd.findElements(By.className("vfmThumbnail"));


1

Adding to user246 answer- languages like Perl or Python have libraries to read textual and non-textual formats like PDF, DOC or XML. Once you read the file into a data structure comparison is relatively easy, but keep in mind that reading itself converts the file to something new, and like user246 wrote there are no simple rules for conversion.


1

No. The issue here is that these mappings are not 1-1; in other words, there is no single, definitive mapping between these formats. Each mapping requires additional heuristics that (I assume) are built into the conversion software you are interested in testing. Still, I think there is hope. You can probably find APIs for extracting data from each of ...


1

I would always vote for hand-coding automated test over the use of Record and Playback. With programming test-cases its much easier to keep the tests DRY and if you think about maintainability of the tests up-front this will safe you a lot of time in the end. Some record and playback tools do support cutting up recordings in pieces and or replacing ...


1

to my experience in automation test, it is more valuable to run in qa environment but you should communicate with developer frequently on changing part which may affect your automated test cases so you can prepare your automated test cases during development phase and give priority to more static features of the product to prevent updating automated cases ...


1

Run the MonkeyLab tests from the commandline: http://www.cloudmonkeymobile.com/monkeytalk-documentation/monkeytalk-faq#1.13 If you are a able to run a single test from the command line then wrap it around a bash script that loops 500 times. Example bash script: #!/bin/bash COUNTER=0 while [ $COUNTER -lt 500 ]; do java -jar monkeytalk-runner.jar -agent ...


1

The blog post is about determining whether Instant Pages renders web pages correctly. Or to be more precise, it is about determining whether Instant Pages renders a web page the same way that Chrome would ordinarily render a page. If Chrome renders the page the same way in both cases, but renders the page the wrong way, their test will not detect the ...


1

Please check the replies on the question asked here. The easiest way is to create database scripts which clean up and reset data whenever you're running a test suite. That way, you'll have the same starting point every time - so that excludes unexpected data as a reason your tests fail.


1

Yes, it most certainly does. Selenium can only address elements once they're loaded, but that loading (controls, ajax calls, ...) is depending on your connection (and browser). In fact, I had a perfectly working script with nice explicit waits for our test environment. But the execution on the production website went bad in places, because the ajax calls ...


1

Sikuli with Robot Framework might be a good fit for you. Sikuli uses image recognition to identify and control GUI components. Sikuli automates anything you see on the screen.



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