Вопрос по – Обработка аутентификации браузера с использованием Selenium

14

Error: User Rate Limit Exceeded

Error: User Rate Limit ExceededHow to handle authentication popup with Selenium Webdriver Louis
Error: User Rate Limit ExceededthisError: User Rate Limit Exceeded Louis

Ваш Ответ

7   ответов
0

http://username:[email protected]/yourpage
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
0

browser().navigate(foo.getUrl()+"non-exiting-url");

//the information got from the rest client login:
Cookie cookie = new Cookie(name, value, domain, path, expiry, isSecure, isHttpOnly);

try {
    driver.manage().addCookie(cookie);
} catch (Exception e) {
    System.out.println(e.toString());
}

browser().navigate(foo.getUrl());
Error: User Rate Limit Exceeded
0

WinWaitActive("[CLASS:Chrome_WidgetWin_1]", "", time)
Send("user")
Send("{TAB}")
Send("pass")
Send("{ENTER}")
1

Error: User Rate Limit Exceeded

driver.get(url);

Error: User Rate Limit Exceeded

RunScript runScript = new RunScript();
runScript.start();

Error: User Rate Limit Exceeded

public class RunScript extends Thread {

@Override
public void run() {
    try {
        File file = new File("D:\\jacob-1.18-x86.dll");
        System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath());
        AutoItX autoIt = new AutoItX();
        Thread.sleep(2000);
        autoIt.winActivate("yourWindowName", "");
        autoIt.winWaitActive("yourWindowName");
        if (autoIt.winExists("yourWindowName")) {
            autoIt.send("username{TAB}", false);
            autoIt.send("password{Enter}", false);
            }
        }
    } catch (InterruptedException ex) {
        //
    }
}
}
5

Error: User Rate Limit ExceededBUT to add a forward slash at the end of the login URL.

Error: User Rate Limit Exceededyourpage):

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

0

WebDriver driver = new FirefoxDriver();
    driver.get("http://localhost:9990");

    WebElement myDynamicElement = driver.findElement(By.id("app"));

    Alert alert = driver.switchTo().alert();


    try {
        Robot robot = new Robot();
        alert.sendKeys("username");

        robot.keyPress(KeyEvent.VK_TAB);//go to password feild

        robot.keyPress(KeyEvent.VK_P);
        robot.keyPress(KeyEvent.VK_A);
        robot.keyPress(KeyEvent.VK_S);
        robot.keyPress(KeyEvent.VK_S);

        robot.keyPress(KeyEvent.VK_ENTER);


        } catch (AWTException e) {
        e.printStackTrace();
        }

    }


16
EDIT in 2015:

Original answer:

http://username:[email protected]/yourpage

http://example.com/yourpage

).

driver.manage().addCookie()

Error: User Rate Limit Exceededstackoverflow.com/questions/3021602/…
Error: User Rate Limit Exceededstackoverflow.com/questions/24304752/…
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded Harshavardhan Konakanchi
Error: User Rate Limit Exceededusername:[email protected]/yourpageError: User Rate Limit Exceededexample.com/yourpage Harshavardhan Konakanchi

Похожие вопросы