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.
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.
7 comments:
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
"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
"
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
Really an informative blog...Thanks for sharing an informative article with us.
python tutorial for beginners
python beginner tutorial
Nice article, its very informative content..thanks for sharing...Waiting for the next update.
react native vs flutter
flutter vs react
Really nice blog. thanks for sharing such a useful information.
Kotlin Online Course
Post a Comment
Send us your comment related to the topic mentioned on the blog