Options trong selenium

package Selenium.webdriver.basictests;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

public class SecondTest {
/*
 * List of web elements
 * -------------
 * Textbox/inputbox
 * radio bttton
 * checkboxes
 * buttons
 * links
 * drop down
 * list box
 * web table
 * drag and drop
 * calenders(date picker)
 */
	
	
	public static void main(String[] args) {
		System.setProperty("webdriver.chrome.driver", "C:\\Users\\600205\\Desktop\\chan\\pleiades\\jpdm\\JPDMWebdriver\\driver\\chromedriver.exe");
		WebDriver chromeDriver = new ChromeDriver();
		
		ChromeOptions chromObtios = new ChromeOptions();
		chromObtios.setHeadless(true);
		chromObtios.addArguments("--headless");
		
		chromeDriver.get("https://chungit.home.blog/");
		System.out.println("Tile of the page: " + chromeDriver.getTitle());
		chromeDriver.close();
	}

}

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Chào mừng bạn đến với blog của tôi! Đây là nơi tôi chia sẻ những trải nghiệm, suy nghĩ và kiến thức mà tôi học được trong cuộc sống và công việc. Hy vọng bạn sẽ tìm thấy điều gì đó hữu ích và thú vị tại đây.

Design a site like this with WordPress.com
Get started