Search This Blog

Wednesday, November 16, 2011

Key press events using selenium RC

To handle key press events like to press page down, tab key or other keys selenium RC supports this by passing ASCII code of keys to keyDownNative function.


keyDownNative(String keycode);

  • For page down/scroll: keyDownNative("32"); //32 is ASCII code for space bar.
  • To press tab key: keyDownNative("9"); // 9 is ASCII code for Tab. 

Wednesday, November 9, 2011

Handling alert, prompt and confirmation box using Selenium RC

This article explain about how to deal with java script alert, prompt and confirmation box.

Copy below html code and save it as test.html.

<script type="text/javascript">

How to shutdown selenium server?

Tuesday, November 8, 2011

Selenium RC Interview Questions

Below are the list of interview questions on selenium RC. Post in comments if anyone need answers for any questions.
  1. What version of Selenium RC you are using?
  2. How Selenium RC works at core components level?
  3. What all languages and browsers that Selenium RC supports?
  4. How you start selenium server?
  5. What are different Start modes of Selenium RC?
  6. When to use proxy injection mode?
  7. How you handle SSL or HTTPS using selenium RC?
  8. How to automate Flash based applications?
  9. Explain about your automation framework
  10. How to handle alerts and pop up?
  11. How to handle Modal dialog?
  12. How to handle AJAX components?
  13. How you upload a file?
  14. How you click on scroll bar button in web application?
  15. Which 3rd party tools/add-ons you use for identifying object identifiers?
  16. How you manage object repository?
  17. How to extend selenium RC for user defined functions?
  18. Is it possible to select a text and compare text?
  19. Have you ever automated Localization test cases using selenium RC?
  20. Major differences/enhancements between Selenium RC and Web driver?
  21. How to navigate to parent tag from a child tag in xpath?
  22. How to navigate to sibling node in xpath?
  23. What are major problems you encountered during automation? and you resolved?
  24. How to connect to excel sheet for test data reading?
  25. Which locator strategy is faster? Xpath or CSS why?
  26. What are different locator strategies exists?
  27. Which reported tool or component you used?
  28. How logging handled in your automation framework?
  29. What are user extension in selenium rc?
  30. How you update selenium server jar if needed?
  31. Is it possible to capture screen shot when system is turned to stand by mode?
  32. How test case dependency handled in your framework?
  33. Can selenium used to measure performance of web application?
  34. Explain getEval and runscript functions.
  35. How you handle auto complete search in selenium rc automation?