我刚开始使用Selenium Grid.
我面临的当前问题是测试崩溃的时候.浏览器一直保持打开状态,直到我到达并自行关闭,以便下一组测试可以开始.
我注意到NODE配置有两个超时配置,一个用于-timeout
,另一个用于-browserTimeout
对于-timeout
,它表示浏览器将"发布"进行另一次测试.因为-browserTimeout
,它根本就没有说什么.
我不明白"已发布"是什么意思.
我需要的是在超时发生时关闭浏览器.
什么选项会关闭浏览器?
在bash脚本中读取文件时捕获文件是否无用?
我应该"捕捉"文件,然后将内容发送到"while",如:
myFileContent="$(cat "$myfile")"
while IFS='' read -r lineRead || [[ -n "$lineRead " ]]; do
<some important code here>
done <<< "$myFileContent"
Run Code Online (Sandbox Code Playgroud)
或者我应该直接发送文件,如:
while IFS='' read -r lineRead || [[ -n "$lineRead " ]]; do
<some important code here>
done < "$myfile"
Run Code Online (Sandbox Code Playgroud)