We reached a new milestone few days ago. It was about 2 years ago that we cross 1 million page views. We crossed a new mile stone few days ago. seleniumtests.com crossed 2 million page views days ago. Though addition on a million page views in not spectacular in span on 2 years but probably an indicator of popularity of a private blog. Last but not the least, seleniumtests.com would not have reached this milestone with out all of you. A big thanks to all of you :-)
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 =