【发布时间】:2020-12-10 15:14:12
【问题描述】:
有一个代码可以比较使用机器人框架点击 url 时产生的 cookie 的模式, 带有字符串变量。
REGMATCH
${string}= set variable hgf
${matches}= get regexp matches ${string} asdfhgfpoyrjgrrhkjhoolk
should be equal as strings ${matches} hgf
但这会返回 False ,
我在下面尝试了这个,
Get Lines Matching Pattern Matching Some Lines
Test Get Lines Matching Pattern asdfhgfpoyrjgrrhkjhoolk ?????? hgf
***KEYWORD***
Test Get Lines Matching Pattern
[Arguments] ${input} ${pattern} ${expected} ${case-insensitive}=no
${actual} = Get Lines Matching Pattern ${input} ${pattern} ${case-insensitive}
Should Be Equal ${actual} ${expected}
谁能帮帮我。
【问题讨论】:
标签: python string cookies robotframework