机器人框架 - IE浏览器支持

时间:2016-05-11 12:09:17

标签: robotframework

我一直在尝试针对I.E浏览器运行测试用例

以下是我的代码

add_action( 'phpmailer_init', 'my_phpmailer_example' );
function my_phpmailer_example( $phpmailer ) {
    $phpmailer->isSMTP();     
    $phpmailer->Host = 'smtp.example.com';
    $phpmailer->SMTPAuth = true; // Force it to use Username and Password to authenticate
    $phpmailer->Port = 25;
    $phpmailer->Username = 'yourusername';
    $phpmailer->Password = 'yourpassword';

    // Additional settings…
    //$phpmailer->SMTPSecure = "tls"; // Choose SSL or TLS, if necessary for your server
    //$phpmailer->From = "you@yourdomail.com";
    //$phpmailer->FromName = "Your Name";
}

并使用以下命令运行脚本 pybot - 变量浏览器:即Main.txt

1 个答案:

答案 0 :(得分:0)

如果要从命令行设置${BROWSER_TYPE},则必须将该名称与--variable参数一起使用:

pybot --variable BROWSER_TYPE:ie Main.txt