Sometimes you need to take tricky actions on software web application page. Selenium webdriver software testing tool do not have any direct method to perform such tricky actions. So you need to use some tricks in your webdriver test script to perform some actions on software web application page. Bellow given links will show you some tricks using which you can perform complex actions In selenium webdriver tests very easily. BTW, You can start from selenium java tutorial if you are beginner.
- How To Get X Y Coordinates Of Element
- How To Get Height And Width Of Element
- How To Capture Element Screenshot
- How To Disable JavaScript Using Custom Profile
- Selecting Checkbox Using Position() and last() Functions In XPath
- Select Checkbox From Table using Preceding/Following Sibling
- Set/Get Window Position And Size In Selenium Test
- Handling Stale Element Reference Exception In Selenium
- Scroll Down-Up Web Page In Selenium Webdriver
- Verify Scroll Present On Browser In Selenium WebDriver Test
- How To Record Selenium WebDriver Test Execution Video
- Zoom In And Zoom Out Page In Selenium Test
- Wait For Page To Load/Ready In Selenium
- Capture Page JavaScript Errors Using WebDriver
- Open New Tab And Switching Between Tabs In WebDriver
- Switching between Iframes In webdriver
- Handle SSL Certificate Error In FF For Selenium WebDriver
- Set Proxy Settings In Selenium WebDriver
- Automating Pie Chart In Selenium WebDriver
- WebDriver Element Locator Add-On To Get XPath
- Closing All Tabs Using Robot Class In Selenium
- Data Driven Test Using CSV File In Selenium
All the posts are very nice !!!!!!!!!!
ReplyDeletekeep it up......
post read/write excel data
ReplyDeleteimport java.io.File;
Deleteimport java.io.FileInputStream;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
class ReadExcelFile{
public static void main(String args[]){
try{
Workbook workBook;
Sheet sheet;
int numOfRows, numOfCols;
Row row;
Cell col;
File file;
FileInputStream fInputStream;
file = new File("InputFiles\\LoginCreds.xlsx");
fInputStream = new FileInputStream(file);
workBook = WorkbookFactory.create(fInputStream);
sheet = workBook.getSheet("Sheet1");
numOfRows = sheet.getLastRowNum();
for(int i=1;i<=numOfRows;i++){
row = sheet.getRow(i);
numOfCols = row.getLastCellNum();
for (int j=0;j<numOfCols;j++){
System.out.println(row.getCell(j).getStringCellValue());
}
}
fInputStream.close();
}catch(Exception e){
}
}
}
Hi Nizams
ReplyDeleteimport java.io.File;
import java.io.FileInputStream;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
class ReadExcelFile{
public static void main(String args[]){
try{
Workbook workBook;
Sheet sheet;
int numOfRows, numOfCols;
Row row;
Cell col;
File file;
FileInputStream fInputStream;
file = new File("InputFiles\\LoginCreds.xlsx");
fInputStream = new FileInputStream(file);
workBook = WorkbookFactory.create(fInputStream);
sheet = workBook.getSheet("Sheet1");
numOfRows = sheet.getLastRowNum();
for(int i=1;i<=numOfRows;i++){
row = sheet.getRow(i);
numOfCols = row.getLastCellNum();
for (int j=0;j<numOfCols;j++){
System.out.println(row.getCell(j).getStringCellValue());
}
}
fInputStream.close();
}catch(Exception e){
}
}
}
import java.io.File;
ReplyDeleteimport java.io.FileInputStream;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
class ReadExcelFile{
public static void main(String args[]){
try{
Workbook workBook;
Sheet sheet;
int numOfRows, numOfCols;
Row row;
Cell col;
File file;
FileInputStream fInputStream;
file = new File("InputFiles\\LoginCreds.xlsx");
fInputStream = new FileInputStream(file);
workBook = WorkbookFactory.create(fInputStream);
sheet = workBook.getSheet("Sheet1");
numOfRows = sheet.getLastRowNum();
for(int i=1;i<=numOfRows;i++){
row = sheet.getRow(i);
numOfCols = row.getLastCellNum();
for (int j=0;j<numOfCols;j++){
System.out.println(row.getCell(j).getStringCellValue());
}
}
fInputStream.close();
}catch(Exception e){
}
}
}
How to highlight the page title using webdriver?
ReplyDeleteHow to highlight the title of a page using webdriver?
ReplyDeleteTitle can we highlight manually ? I think we can highlight only webelement which are present on the webpage. But title is in title bar.
DeleteThis worked perfect for me !!
ReplyDelete