douqianxian7008
2015-04-02 19:43
浏览 43
已采纳

php浏览器simpleTest登录问题

I am trying to login to a website using simpleTest browser.

Below is my code

require_once('simpletest/browser.php');

$browser = new SimpleBrowser();

$browser->get('http://uosom.dzxpy.servertrust.com/login.asp');
$browser->setField('email', 'asher@wds-testing.com');
$browser->setField('password', 'password123');
echo $browser->clickSubmitByName('imageField2');

It is not logging me in and even it does not throw an error.

Can anyone please tell me what I am doing wrong?

1条回答 默认 最新

相关推荐 更多相似问题