SCHNEIDER: 1.How to handle s driver.switchTo().parentFrame(); driver.switchTo().defaultContent(); 2.exception handling/How can we write customized exceptions (user exceptions) Try-Catch Using throw extending Exception class 3.finally 4.how to maintian screenshots in project 5.how to run failed test cases failed_testng.xml 6.scrum process 7.srolling the web page JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("window.scrollBy(0,250)", ""); // Scrolling down the page till the element is found js.executeScript("arguments[0].scrollIntoView();", Element); //This will scroll the page Horizontally till the element is found js.executeScript("arguments[0].scrollIntoView();", Element); js.executeScript("window.scrollTo(0, document.body.scrollHeight)");//bottom of the page 8.action menthods Mouse Actions in Selenium: doubleClick(): Performs double click on the element clickAndHold(): Performs long click on the mouse without releasing it dragAndDrop(): Drags the element from one point and drops to another moveToElement(): Shifts the mouse pointer to the center of the element contextClick(): Performs right-click on the mouse
Keyboard Actions in Selenium: sendKeys(): Sends a series of keys to the element keyUp(): Performs key release keyDown(): Performs keypress without release 9.Auto suggestions in search by capturing list of elements displayed in the suggestions and selecting the matching element 10.Handling data to the framework @parameters({name,value})
11.Reading data from excel //Path of the excel file FileInputStream fs = new FileInputStream("D:\\DemoFile.xlsx"); //Creating a workbook XSSFWorkbook workbook = new XSSFWorkbook(fs); XSSFSheet sheet = workbook.getSheetAt(0); Row row = sheet.getRow(0); Cell cell = row.getCell(0); 12.Validate broken images in webpage
For Screenshots create a screenshot folder in the project structure and in the base test script ,we can capture if the test case fails by using 'TakesScreenshot' and 'getScreenshotAs' methods....... & We can view them even @reports folder
SCHNEIDER:
1.How to handle s
driver.switchTo().parentFrame();
driver.switchTo().defaultContent();
2.exception handling/How can we write customized exceptions (user exceptions)
Try-Catch
Using throw
extending Exception class
3.finally
4.how to maintian screenshots in project
5.how to run failed test cases
failed_testng.xml
6.scrum process
7.srolling the web page
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("window.scrollBy(0,250)", "");
// Scrolling down the page till the element is found
js.executeScript("arguments[0].scrollIntoView();", Element);
//This will scroll the page Horizontally till the element is found
js.executeScript("arguments[0].scrollIntoView();", Element);
js.executeScript("window.scrollTo(0, document.body.scrollHeight)");//bottom of the page
8.action menthods
Mouse Actions in Selenium:
doubleClick(): Performs double click on the element
clickAndHold(): Performs long click on the mouse without releasing it
dragAndDrop(): Drags the element from one point and drops to another
moveToElement(): Shifts the mouse pointer to the center of the element
contextClick(): Performs right-click on the mouse
Keyboard Actions in Selenium:
sendKeys(): Sends a series of keys to the element
keyUp(): Performs key release
keyDown(): Performs keypress without release
9.Auto suggestions in search
by capturing list of elements displayed in the suggestions and selecting the matching element
10.Handling data to the framework
@parameters({name,value})
11.Reading data from excel
//Path of the excel file
FileInputStream fs = new FileInputStream("D:\\DemoFile.xlsx");
//Creating a workbook
XSSFWorkbook workbook = new XSSFWorkbook(fs);
XSSFSheet sheet = workbook.getSheetAt(0);
Row row = sheet.getRow(0);
Cell cell = row.getCell(0);
12.Validate broken images in webpage
Hi can you post interview questions asked at Epam anywhere for automation on API?
For Screenshots create a screenshot folder in the project structure and in the base test script ,we can capture if the test case fails by using 'TakesScreenshot' and 'getScreenshotAs' methods....... & We can view them even @reports folder
Create utility method for taking screenshot then you can call this method in ontestfailure method which is there in listeners class
We have create one errorshot folder inside we can store screenshot
By capturing all list of elements into some java list we can handle suggestions
Do company contact with college institute for BGC for educational certificate verification ❓
Create a folder named screenshots in src/test/resources
How much experience it is
./login.png
Here dot represents Current directory details and login nothing but Name of the screen shot