Java_Basics - Imtiaz211/interviews GitHub Wiki
- Test suite
- Test Suite Collection.
- Installation.
- login with compay email id, not gmail.
- Learn UI action of Katalon tools menu.
- System.setProperty()
- DesiredCapabilities dc = DesiredCapabilities.chrome().
- WebDriverManager.chromeDriver.setup().
- WebElement we = WebElement();
- InterruptedException
- @Test
- @Test(priority = 1, groups = {"smoke", "Regression"}) -@TestBeforeClass, @TestBeforeMethod @AfterTest and more on this annotations.
- Thread.sleep()
- driver.manage().windown().maximize();
- @override
- InterruptexException
- driver.navigate().back();
- driver.manage().timeouts().implicitlyWait();
- ExpectedConditions.elementToBeSelected()
- List
- Iterator
- HttpURLConnection
- MalformedURLException()
- ThreadDriver()
- WebDriverException, Exception,
- RediffHomePage();
- sendKeys()
- @FindBy() WebElement web;
- File(), FileInputStream(), XSSFworkbook(), XSSFSheet().getRow().getCell().getStringCellValue(),
- Alert alert = driver.switchTo().alert();
- Assert.assertEquals()
- PageFactory.initElements(drive, this), Actions, Logger, JavascriptExecutor, NavbarAfterLogin, Properties,
- prop.getProperty(), this is like usedefaults.
- ChromeOptions()
- WebDriverManager
- Selenium-java
- poi-ooxml-full
- poi-scratchpad
We can create global driver for selenium
- Webdriver can be global, in place of chrome and firefox driver.
- preceding - sibling
- extensions need to add chropath to inspect the chrome
- auto IT Script
- cucumber and robotic(selenium python) framework.
Selelinium
- Broken link
- List list = ?
- we can check empty, nil and more on testing.
- We can assingn url in variable (same like java programe)
- URL is null, empty,
- broken link
- TestNG not required Main Methods.
- group test
Selenium Topics Locators for
- Basic Locators
- id
- name
- class name
- partial link Text
- tag name
- xpath
- css
- Relative Locator
Maven is used for Selenium testing like central repository.
- Maven is already present in eclipse IDE to create project.
- it is dependancy tools.
- WebDriverManger dependancy added to don't use local path of chrome,safari, firefox and edge in selenium test.
- geckodriver
- seleneium for java and Meaven project
- update chrome versio 128
- Selenium Remote control
- Selenium Grid
- Selenium IDE
- Selenium WebDriver
- Testing download for eclipse
- TestNG.org
- Learning Selenium for Java Teting.
- selenium 4.0 version we are going to learn.
- Crome driver for testing.
- Need in eclipese for selenium.
- Need to import org.openqa.selenium.pageloadStrategy;
- Maven project and Java project
- Regular java project for selenium.
- java build path -> add external JARs
- MVN Repository
- Add repository with dependaccy from MVN Repository by searching name in search bar with latest version.
- https://mvnrepository.com/
- https://selenium.dev/
- identify the defect from script
- java.util.concurrent.timeunit
An applet is a special kind of Java program that a browser enabled with Java technology can download from the internet and run.
The this keyword.
- this.x
- Constructor Methods.
- Over loading constructor.
- Overriding methods.
- Extends / inheritance, single , multiple and much more.
- Java Aplet basic.
- Java application and Java Aplet differenct.
Array Condition and loops. (Arrays in Java are different than they are in other languages. Arrays in Java are actual objects that can be passed around and treated just like other objects.)
- Declaring array
- one dimentional array
- multidimentional array
- if else condition
- Ternery oprator
- Switch case.
- for loop
- for(initialization, condition/test, increment){ statement}
- while and do loop
- do while loop.
- breaking out of loop.
- Label loop
The java.awt.Point class represents a location in a two-dimensional coordinate space, specified in integer precision. It’s part of the Abstract Window Toolkit (AWT) library in Java.
- Class Variable.
- Reference to object
- casting and Converting object and primitive type
Arthematics
- Statement and Expression
- variable and data type
- Comments
- Literals
- Arthematics
- Comparision
- Logical Operation
Java is an object-oriented programming language developed
- In addition to its portability and object-orientation, one of Java’s initial design goals was to be small and simple,
- Java applications fall into two main groups: applets and applications.