Added method and unit test cases for Css selectors and xpath