Skip to main content

Selenium Training Meet - 1st July 2012

We conducted 3rd Selenium training meet today. There were 128 registrations and 44 participants.
We digressed from the agenda in this meeting and discussed on Java and how it is used in writing Selenium tests. Following topics were covered during meeting -

  • OOPS - Encapsulation, Abstraction, Inheritance, Polymorphism. 
  • Introduction to Class, instance variable, instance methods, class variable, class method, Object
  • Constructor, Abstract Class, Interface, method overloading, method overriding, Package

  • Loops. To execute same statements time and again, for example logging in for 5 different accounts using same method.
  • Arrays. You don't want to keep writing variables all overs you test scripts. Wish you could create a large place holder for similar types of variables.
The java Collection framework could not be discussed today and would be taken up in next Selenium training meet. Here is the Meeting recording.

Comments

Popular posts from this blog

Selenium Tutorial: Pattern Mathing using Selenium

Note: If you are new to java and selenium then start with selenium java training videos .   I must confess I have never been admirer of Regular Expression but then there are times you can not escape from it, especially while working on a website which has dynamic contents appeared in static text and you want to validate it. like - "Validate that this text appears and there is 123 here and 456 here" And the test condition is 123 and 456 could be any three digits but number if digits should not be more than three. In a crude way we can at least test this - Assert.assertTrue(selenium.getText("elementLocator").contains("Validate that this text appears and there is")); but what if text goes wrong after "and there is"... what if more than 3 digits appear in text. This is where pattern matching/regular expression comes for our rescue and we can use matches method of String class to achieve same. So the assertion would be - String text =

Using chrome console to test xPath and css selectors

Note: If you are new to java and selenium then start with selenium java training videos .       Since the advent of selenium there have been many plugin to test xPath / css selectors but you don’t need any of them if you have chrome browser. Using Chrome console you can test both xPath and css selectors. Launch website to be tested in chrome browser and hit F-12 and you would see chrome console opened in lower pane of application - Hit escape key and console would open another pane to write element locators - And now you can start writing xPath or css selectors in chrome console and test them - The syntax for writing css id - $$(“ ”) And hit the enter key. If your expression is right then html snippet of the application element corresponding to the css selector would be displayed - If you mouse over the html snippet in chrome console then it would highlight the corresponding element in application - If you want to clean console of previously wri

Verify email confirmation using Selenium

Note: If you are new to java and selenium then start with selenium java training videos .     Email confirmation seems to be integral part of any registration process. I came across an application which lets you provide your email address. You can follow the sign up link in you mail and then complete the registration process. Lets consider we provide GMail address for it. Now if were to use only Selenium then we would have to follow following steps - Launch GMail using Selenium; Some how search for new mail in the list of available mails; Some how click on it; Parse the mail message; Get the registration link; Follow up with registration process What do you think of an approach in which you can