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?

查看全部
douqianxian7008
douqianxian7008
2015/04/02 19:43
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复