Saturday, January 5, 2013

Ranorex test automation issue: Unable to reliably click a button on silverlight web app

Ranorex test automation issue: Unable to reliably click a button on silverlight web app

We have automated a few test cases using the Ranorex automation framework for a Silverlight web application. These test cases involve clicking buttons in order to invoke certain messages on the screen. In order to grab the button on the screen, we first create an Ranorex button object and then point it to the appropriate element using Ranorexpath. Then, we use the RanorexButton.Click() event to click the button. However, this event is unreliable. It works sometimes and at other times the button is not clicked. When the button is not clicked, we have to run the test case again from the start. What are we doing wrong? If this is a known problem of ranorex, please suggest workarounds.

Answers & Comments...

Answer: 1

I haven't heard about such a problem with Ranorex yet, maybe this is just a timing issue. You could add a Validate.Exists(yourButton) right before the click, this ensures that the click is performed after the button was successfully loaded. If it is a WebElement you could also use the PerformClick() method instead of the normal Click() method. There are also different methods which will ensure that the button is in the visible area and has focus, like the EnsureVisible() or the Focus() method. You will find the available methods of the used adapter in the online API of Ranorex.

by : user1948657http://stackoverflow.com/users/1948657




7 comments:

Suba said...

Your content on Ranorex tool is awesome. I gained many info on selenium testing tool. thanks

Hadoop Training in Chennai
Android Training in Chennai
Selenium Training in Chennai
Digital Marketing Course in Chennai
JAVA Training in Chennai
German Classes in chennai
web designing course in chennai
web designing training in chennai
web designing course

vivekvedha said...

"Thanks for sharing this article

Digital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"

shemadevan said...

Nice article, its very informative content..thanks for sharing...Waiting for the next update
Web services with SoapUi testing online training
Web Services with SoapUI testing online

Nithyadev said...

Really an informative blog...Thanks for sharing an informative article with us.
python tutorial for beginners
python beginner tutorial

Sumi Dany said...

Nice article, its very informative content..thanks for sharing...Waiting for the next update.
react native vs flutter
flutter vs react

samuelmorkel said...

Really nice blog. thanks for sharing such a useful information.
Kotlin Online Course

Embedded Hash said...
This comment has been removed by the author.

Post a Comment

Send us your comment related to the topic mentioned on the blog