Tag Info

New answers tagged

0

Your solution where you retry the sendKeys operation is the right idea. I do the same thing. You should have a sort of "retry" fallback. I also suggest running all failed tests twice after they fail and if they succeed at any point, they should pass. You can also try different Expected Conditions. I prefer to use "displayed and clickable" for most of my ...


0

The answer to this depends on what level of coding do you wish to do? How complex will your test script be? To begin with you might want to learn basic/core java and then keep on improving with practice and seeking help from others to put together complex scripts to test complex software.


1

I found this really simple code to write output to file. You can find it here - http://www.mkyong.com/java/how-to-write-to-file-in-java-bufferedwriter-example/ You can customize the code to fit your need and write the list values to file by placing the bw.write() part withing a loop.


0

You could use driver.findElement(By.xpath(".//*[@id='ctl04_Pane2_AttributeDefinitionCategoryTest']/td[2]/div/select")).sendKeys(Keys.RETURN); for an easy fix. However there are ways to select by the value. Select select = new Select(driver.findElement(By.xpath(".//*[@id='ctl04_Pane2_AttributeDefinitionCategoryTest']/td[2]/div/select"))); ...


0

use driver.switchto().activeelement() before sending the arrow keys.


0

Its good that you find interest in software testing and want to switch from programming to testing. Since you have 4 years of experience in programming you can use it as your strength to be a test developer. A test developer writes test scripts for automating tests (mostly unit level but not necessarily limited to it). Plus you fund it interesting to do ...


1

Hello since you are getting the results in the List, you can export them to a file for use in future, or can use them further for comparison or whatever you need since the data is already stored in the List variable. You can see in this sample code here - http://milinpatel17.wordpress.com/2014/07/02/web-page-link-test-using-selenium-webdriver/ that I have ...


0

You can download the Java jar from http://docs.seleniumhq.org/download/. Unzip the file and move the (non-source) jar to where you keep your libraries for your Eclipse project. In Eclipse, you will need to add the jar to the list of libraries for your project build. You should now be able to create a test class and run some Selenium tests. There is a good ...


-1

It is giving you the web element just put .getText() whenever you see such code.


0

While Kate's answer is extremely thorough, there is 1 thing I felt that was missing. How to actually land a job in SQA. The first thing you will want to do is familiarize yourself with the tools and techniques that are commonplace in SQA. There is so many to list but if you read 85% of the questions here they are about a few different tools in general. ...


0

Try switching to testing department in your current organization only. It would be good that if you gain some more knowledge on software testing process and all that stuff. On paper it would also be good to have some testing experience before you hunt for a testing job outside with development background. Get comfortable with the process of testing first, ...


9

It's certainly possible - that's the way I and many others here became testers. As Som Ghosh says, you will need to mention in your applications for test positions that you have worked in testing as well as development. I'd suggest you include details of the kind of testing you've done and the scale of the projects that you tested. I would recommend that ...


0

Yes Suchi you can switch to testing domain many companies prefer developers switched to testing as their testing professionals . You can start applying and you will get good response also. try to mention in your profile that you worked on testing also so that it would be helpful for recruiters to line up their list


1

You want to use component query. From Webdriver you can execute arbitrary javascript - that means you can use ComponentQuery to get things from a high level and then drill down with (maybe) xpath to get more specific things. This article helped me figure it out. for example you'd probably use component query to get hold of a control and a button in that ...


0

The image processing based Sikuli works on optical recognition of screen elements rather than HTML elements and can be a method to get around those peskily changing IDs.


1

Use another identifier to identify the object or use xpath, for example: starts-with If your dynamic element's ids have the format where button id="continue-12345" where 12345 is a dynamic number you could use the following XPath: //button[starts-with(@id, 'continue-')] contains Sometimes an element gets identified by a value that could be surrounded ...


3

Sadly, it sounds like using the ID is not an option in this scenario A lot of websites implement security to prevent automating. While this makes your job more difficult it does improve the security of the application. So what can be done to bypass these security tricks? Use a different unique constant for that element This could mean using the class, ...


2

You can't capture the id's every time, you need to find some other way of uniquely identifying the elements. I'm assuming this is a 3rd party tool that you don't have any control over, but if you do have control you could ask the developers to provide either a unique ID or some other unique identifier. Some other options you have would be to identify ...


1

What this does is, it waits until the element with id "foo" is found. If the element is not found, retry every 5 seconds. But wait only up to a maximum of 30 seconds. It does this by calling the following function every 5 seconds, until it doesn't return null: public WebElement apply(WebDriver driver) { return driver.findElement(By.id("foo")); } The ...


0

Learn the basics of JAVA(any programming language) - Door step to Selenium2 automation Assuming you have a basic understanding of HTML, CSS Learn about locators, simple selenium commands and try to automate simple functionality Once you got to know how to control the browser, you can go on using the frameworks like TestNG(preferrable) or JUnit Learn ...


6

Java My experience is, that the basics of Java suffice to start developing test cases with Selenium 2 / WebDriver. Myself started developing of Selenium test cases with a basic knowledge about Java. The more test cases I wrote and solutions I had to find, the more I leaned about the programming language. Unit Testing Framework (JUnit, TestNG) Write some ...


1

Clojure is a language which targets Java Virtual Machine so any Java-based load testing tool will be good for you. All 3 are mentioned in this discussion: Grinder Gatling JMeter If you are about to go for Gatling remember that it doesn't scale and has very limited protocols support. Perhaps Open Source Load Testing Tools: Which One Should You Use? can ...


1

I have used The Grinder with Clojure as the scripting language. It wasn't as easy to use as JMeter, but it got the job done.


1

Well it depends on what you set up, in my environment I had Python, Java, PiP and EasyInstall loaded then it was simply a matter of running: pip install robotframework But it's simple enough to find the instructions on the Robot Framework site and check out the link to the Installation Instructions. The Robot Framework site has links to examples as well, ...


2

At least on http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.5#getting-started is nicely detailled installation instructions.



Top 50 recent answers are included