Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть How to Read Excel File in Selenium Webdriver using Intellij Idea | Automation

  • RayzTechy
  • 2020-04-13
  • 6382
How to Read Excel File in Selenium Webdriver using Intellij Idea | Automation
How to read excel file in seleniumHow to read data from excel file using seleniumHow to extract data from excel file using seleniumHow to input data using seleniumData driven testingCSV FileOpenCSVHow to Read CSV Files in SeleniumAutomation GuideHow to read CSV files using JavaHow To Read Test Data From CSV File In SeleniumRead data from csv file using java in webdriverread and write csv file in java seleniumread test data from csv file in seleniumselenium
  • ok logo

Скачать How to Read Excel File in Selenium Webdriver using Intellij Idea | Automation бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно How to Read Excel File in Selenium Webdriver using Intellij Idea | Automation или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку How to Read Excel File in Selenium Webdriver using Intellij Idea | Automation бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео How to Read Excel File in Selenium Webdriver using Intellij Idea | Automation

How to Read Excel File in Selenium Webdriver using Intellij Idea

opencsv-3.2.jar file to read data from CSV file.

OpenCSV3.2 JAR file Download link:

https://drive.google.com/file/d/0B6vn...

How to import jar file available in my previous video


Sample Test Code:

package com.Excel.Reader;

import com.opencsv.CSVReader;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Main {

public static void main(String[] args) throws IOException, InterruptedException {

WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();

driver.get("http://only-testing-blog.blogspot.com...");

CSVReader reader = new CSVReader(new FileReader("D://ExcelRead.csv"));

String csvCell[];

while ((csvCell = reader.readNext()) != null)
{
String Fname = csvCell[0];
String Lname = csvCell[1];
String Email = csvCell[2];
String Mob = csvCell[3];
String company = csvCell[4];

driver.findElement(By.xpath("//*[@id=\"post-body-8228718889842861683\"]/div[1]/form/input[1]")).sendKeys(Fname);
driver.findElement(By.xpath("//*[@id=\"post-body-8228718889842861683\"]/div[1]/form/input[2]")).sendKeys(Lname);
driver.findElement(By.xpath("//*[@id=\"post-body-8228718889842861683\"]/div[1]/form/input[3]")).sendKeys(Email);
driver.findElement(By.xpath("//*[@id=\"post-body-8228718889842861683\"]/div[1]/form/input[4]")).sendKeys(Mob);
driver.findElement(By.xpath("//*[@id=\"post-body-8228718889842861683\"]/div[1]/form/input[5]")).sendKeys(company);
driver.findElement(By.xpath("//*[@id=\"post-body-8228718889842861683\"]/div[1]/form/input[6]")).click();

Thread.sleep(5000);

driver.switchTo().alert().accept();
}

}

}

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]