Category: <span>Selenium RC</span>

JavaScript Alerts and Selenium/Webdriver.

One of the most popular question among selenium/Webdriver users. I used that couple of places to handle. Selenium RC: if you are expecting javaScript alert and  you want to handle using OK then use following commands and then you can use your code. selenium.chooseCancelOnNextConfirmation() selenium.chooseOkOnNextConfirmation() Note: In Firefox 4.0 and higher version, you will see alerts like following and its impossible to handle this via selenium. There is a workaround to handle this. Type ‘about:config’ in Address bar of firefox browser and accept the warning. Type “tab_”. You will see prompts.tab_model.enabled option with Value: true. Double click on the row which will …

Selenium Core & Customized Keywords

[grpdocsview file=”” height=”700″ width=”600″]We have completed basics of Selenium IDE so far. Today we will talk more about keywords/commands. However we will not go in very detail because you can find all those commands on selenium’s own website. I will try to explain some frequently used commands only. While doing recording in Selenium IDE you noticed many keywords like clickAndWait etc. These keywords are actually customized with help of core keywords like click() and wait(). IDE creator wanted to give enough capability to testers to use standalone IDE for testing so these keywords are included there. How to understand customized …

Selenium Commands That You must know.

Pay attention to following commands as these are going to play pivotal role in selenium. 1: SelectFrame (locator): To learn this command we need to understand basics of HTML frame element first. Spend some time to learn HTML Frames, if don’t know much about frame elements. While performing any action to any web element, we first select the frame where it resides then we perform any action to any element inside that frame. To access other elements coded in different frame, again we need to select that frame using this command and then we can access their elements. We use …