我没有找到任何有关如何使用Safari技术预览版正确设置夜表配置的信息。
我尝试过这样的事情:
{ value:
{ message: 'Could not create a session: A browser with name \'safari\' version \'12\' could not be found on the system.\nBuild info: version: \'3.13.0\', revision: \'2f0d292\', time: \'2018-06-25T15:32:19.891Z\'\nSystem info: host: \'Boostas-MacBook-Pro-5.local\', ip: \'fe80:0:0:0:100a:70f9:d6d7:cbfc%en0\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.13.6\', java.version: \'10.0.1\'\nDriver info: driver.version: unknown\nremote stacktrace: ',
error: 'session not created' },
status: 33 }
但是执行后,我得到此错误:
technologyPreview
注意::如果我将<?php
session_start();
$_SESSION['username']="username";
?>
<!DOCTYPE html>
<html>
<head>
<title>Update</title>
</head>
<body>
<table border="2">
<tr>
<th>Username</th>
<th>Email</th>
<th>Edit</th>
</tr>
<?php
$conn=mysqli_connect("localhost","root","","telephasic");
$q2="select * from register where username = '".$_SESSION['username']."'";
$run=mysqli_query($conn, $q2);
while($row=mysqli_fetch_array($run))
{
$name=$row[1];
$email=$row[2];
?>
<tr>
<td><?php echo $name; ?></td>
<td><?php echo $email; ?></td>
<td><a href="edit.php"> Edit </a></td>
</tr>
<?php } ?>
</table>
</body>
设置为false,则测试将在Safari浏览器中运行。
希望你们能帮助我!
答案 0 :(得分:0)
在我的案例中,这两个选项在nightwatch.json
中可以启动Safari Technology Preview:
"desiredCapabilities": {
"browserName": "safari",
"safari.options": {"technologyPreview": true},
}
有用的参考资料:https://macops.ca/using-safari-technology-preview-with-selenium-webdriver/
希望这会有所帮助!