I am writing a java code using selenium webdriver to automate a web application. When the web application opens it gives me a browser pop-up to install a plugin that is required for the application but I have not been able to get anything on how to click on the pop-up since its browser generated. Need help!
Also every time, my application opens, the browser gives a pop-up which it shouldn't since the plugin for the application is already installed. Why does that happen?
Below is the code I have written till now. As soon as the setup button is clicked the pop up appears which I need to allow since it will install the plugin and then the next button needs to be clicked. (I have just started learning selenium so might have done some mistake, can help in rectifying it) Thank you
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Test1 {
public static void main(String[] args) {
// create a firefox web driver
WebDriver driver = new FirefoxDriver();
// open webpage
driver.get("C:\\Users\\ajhavar.INOVATE\\Desktop\\Training_Docs\\Sample_WebAPI_Client\\ptt_Latest.html");
//driver.get("http://www.indeed.com");
//find setup button and click it
driver.findElement(By.id("setup_web")).click();
//Alert alert =driver.switchTo().alert();
//alert.accept();
//find initializecall button and click it
//driver.findElement(By.id("initializeCallBacksbutton")).click();