screen shot for my question如何使用硒webdriver處理mozilla和chrome瀏覽器中的地理位置彈出窗口?如何在使用硒webdriver的mozilla和chrome瀏覽器中處理地理位置彈出窗口?
package tiyotesting;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;
import org.openqa.selenium.support.ui.Select;
public class Citydropdownlist {
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new FirefoxDriver();
driver.get("http://www.google.com");
driver.get("http://ec2-35-154-164-82.ap-south-1.compute.amazonaws.com/tiyorelease3/");
WebElement ListBox = driver.findElement(By.id("supported_city_label"));
ListBox.sendKeys("Ahmedabad");
ListBox.sendKeys(Keys.ENTER);
}
}
我創建Firefox的自定義配置文件它也不會再工作彈出來了對我來說是攪局者,所以請幫我解決這個問題
我創建Firefox的自定義配置文件它也沒有工作又彈出來了對我來說是攪局者,所以請幫我解決這個問題 –
進出口無法看到的地理位置彈出google.com的 - 它自動重定向我。請考慮爲彈出窗口提供屏幕截圖。 – iamkenos
我必須附上檔案 –