Tell me more ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I'm trying to automate the testing for a Silverlight application but I'm a bit stuck.

There's a DataGrid that needs a new entry.

First, I press a button which adds a new row to the DataGrid.

Then I try to locate the first new cell in this row and enter a value but it doesn't always find this new cell.

I'm using Test Studio by Telerik (stand-alone version with recorder). To fill in this new cell, it has to be located, but it doesn't have a specific elementname because it doesn't exist when the application is started. If you automate a buttonClick on a button that's visible from the start, the software can locate it easily. I also noticed that if the DataGrid is filled with X items, I record the automation script and it will only work when there's X items in the grid.

Any idea on how to fix this or to approach this from a different angle?

Kind regards, Kristof.

share|improve this question
We don't have enough info to help. What tool or framework are you using to automate these steps? Have you tried to see if it is a timing issue, if you add a 10 second sleep before locating the element, does that fix it? If so, you could add some polling logic to re-try until you find the element. – Sam Woods Apr 19 '12 at 15:58
Sorry for the lack of information, I copied my post from the telerik forums without thinking through I should add some extra information. – Kristof Apr 20 '12 at 6:33
I'm using Test Studio by Telerik (stand-alone version with recorder). To fill in this new cell, it has to be located, but it doesn't have a specific elementname because it doesn't exist when the application is started. If you automate a buttonClick on a button that's visible from the start, the software can locate it easily. I also noticed that if the DataGrid is filled with X items, I record the automation script and it will only work when there's X items in the grid. – Kristof Apr 20 '12 at 6:33

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.