Accept Facebook Cookie policy by Selenium Web Driver
As the ID and class create dynamically so my best approce the xpath as bellow driver.findElement(By.xpath("//button[@data-cookiebanner='accept_button']")).click();
As the ID and class create dynamically so my best approce the xpath as bellow driver.findElement(By.xpath("//button[@data-cookiebanner='accept_button']")).click();
At first we have to import packages import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.support.ui.ExpectedConditions; 2. WebDriverWait wait =new WebDriverWait(driver,Duration.ofSeconds(5)); wait.until(ExpectedConditions.presenceOfElementLocated (By.xpath("/html/body/div[3]/div[2]/div")));
We can report defect by bugzillaor excel
Need to update chrome driver from ( https://chromedriver.chromium.org/downloads )Then need to extract and connect to chromedriver.exe public static void main(String args) { System.setProperty("webdriver.chrome.driver","C:\\Users\\khandakerto\\Desktop\\chromedriver_new\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://www.bloomadmin.se/"); System.out.println(driver.getTitle());…
There are mainly 3 types of testing such as functional, non functional and maintenance.
Smoke / Sanity testing can minimize time , efficiency and cost.
It also called by component testing. Generally I is done by developer