Posts

Cruxes of Selenium - Selenium Basics - Selenium for Beginners

Image
Selenium is a suite of several automated testing tools, each of them catering to different testing needs.Basics and advantages of Selenium - All these tools fall under the same umbrella of open source category and supports only web based testing.Selenium suite is comprised of 4 basic components; Selenium IDE, Selenium RC, WebDriver, SeleniumGrid.User is expected to choose wisely the right Selenium tool for his/her needs - Here is the Good News for Selenium Testers.Selenium IDE is distributed as a Firefox plug-in. It is easier to install and use. User is not required to possess prior programming knowledge. Selenium IDE is an ideal tool for a naive user.Selenium RC is a server that allows user to create test scripts in a desired programming language. It also allows executing test scripts within the large spectrum of browsers. "Top 4 Difference between Selenium RC & WebDriver"Selenium Grid brings out an additional feature to Selenium RC by distributing its test script on di…

Top 50 Tricky Selenium Interview Questions

Image
Previous Post: Good News for Selenium Testers 
1. What are the annotations used in TestNG? @Test, @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest, @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod 2. How do you read data from excel? FileInputStream fis = new FileInputStream (“path of excel file”); Workbook wb = WorkbookFactory.create (fis); Sheet s = wb.getSheet (“sheetName”) String value = s.getRow (rowNum).getCell (cellNum).getStringCellValue (); 3. What is the use of xpath? It is used to find the WebElement in web page. It is very useful to identify the dynamic web elements. 4. What are different types of locators? There are 8 types of locators and all are the static methods of the By class. By.id ()By.name ()By.tagName ()By.className ()By.linkText ()