| Код | WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3_6); try { HtmlPage page = webClient.getPage(site.getDomain() + "/wp-login.php"); ((HtmlTextInput) page.getFirstByXPath(".//*[@id='user_login']")).setText(Config.WP_ADMIN); ((HtmlPasswordInput) page.getFirstByXPath(".//*[@id='user_pass']")).setText(site.getPassword()); page = ((HtmlSubmitInput) page.getFirstByXPath(".//*[@id='wp-submit']")).click(); } catch (IOException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. }
|
Warning
| Цитата | | WARNING: Cookie rejected: "[version: 0][name: wordpress_7c55e4661da563b1f1a452eecfc3a9af][value: +][domain: candy-shmandy.tk][path: /wp-admin][expiry: Thu May 20 09:20:35 EEST 2010]". Illegal path attribute "/wp-admin". Path of origin: "/wp-login.php" |
редиректа на следующую страницу не проиходит. как решить сию проблемму? |