What is AJAX? Ajax is a combination of different web development techniques which run in a user’s browser and exchange data with a webserver to update a webpage or parts of a webpage. As the name AJAX stands for Asynchronous JavaScript and XML, AJAX uses XMLHttpRequest calls to request data from a server and JavaScript…
Read moreThe Watir problem with waiting for Ajax elements… When testing a webpage that contain elements like Javascript or ajax which, after an event fire, reload page elements without reloading the whole page can become difficult to script for using plain Watir or Selenium. For example, Watir’s wait_until method will wait for an element to…
Read moreIn one of our clients current projects, there is a module of scripts that require each script to log in as multiple user/roles to complete certain parts of the work flow. The application is also a little quirky. It has no log out button! So in order for our script to log out of one…
Read moreI have been working on Ruby and Watir technologies for a while now. While enjoying the versatility of Watir (as evident from Željko Filipin’s Watir solution for playing pacman, http://zeljkofilipin.com/2010/05/29/play-google-pacman-with-watir/) – I realized that there are certain scenarios in which we do not have direct method for accomplishing a task. For example, when we have…
Read moreDealing with AJAX text boxes using Watir is tricky. We recently encountered 1 which looks like a generic input box but needs to be activated in order to input data. After trying the various common input methods
1 |
browser.text_field( ).set(value ) |
we finally were able to identify the fix as a 2 step process: Step 1: Clicking the…
Read moreDealing with AJAX text boxes using Watir is tricky. We recently encountered 1 which looks like a generic input box but needs to be activated in order to input data. After trying the various common input methods
1 |
browser.text_field( ).set(value ) |
we finally were able to identify the fix as a 2 step process: Step 1: Clicking the…
Read more