Skip to main content

Posts

Data Type in Java - Easy Selenium Java Tutorials

Selenium  is an  open-source tool  that is used for test automation. It is licensed under Apache License 2.0. Selenium is a suite of tools that helps in automating only web applications. This tutorial will give you an in-depth understanding of  Data Types in Java with example. Here we go; What is Data Type? A  data type , in programming, is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causing an error. A string, for example, is a data type that is used to classify text and an integer is a data type used to classify whole numbers. Lets dig a little deeper; What is Data Type in Java? Data type specifies the size and type of values that can be stored in an identifier. The Java language is rich in its data types. Different data types allow you to select the type appropriate to the needs of the application. Data types in Java are cl...

Cruxes of Selenium - Selenium Basics - Selenium for Beginners

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 distribut...

Top 50 Tricky Selenium Interview Questions

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 () By.partialLinkText () By.xpath By.cssSelector () 5. What is the difference between Assert and Verify? Assert it is used to verify the result. If the test case fails then it ...