您好,我正在使用机器人框架。
我正在尝试发送获取请求,但收到以下警告
C:\Python27\lib\site-packages\urllib3-1.21.1-py2.7.egg\urllib3\connectionpool.py:852: InsecureRequestWarning: 正在发出未经验证的 HTTPS 请求。强烈建议添加证书验证。请参阅:https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)
有人遇到过这个问题吗?当我寻找解决方案时,建议之一是禁用警告,但如何做到这一点呢?
提前致谢,
我需要在 Robot 框架中创建一个嵌套循环。你能帮我做吗?
${contents}= Get File ${file path}
@{lines}= Split to lines ${contents}
${matched elements}= Get Webelements ${LABEL PORTAIL XPATH }
: FOR ${element} IN @{matched elements}
\ ${text}= Get Text ${element}
\ : FOR ${line} IN @{lines}
\ Run Keyword If '${text}' == '${line}' Log '${text} matched'
Run Code Online (Sandbox Code Playgroud)
我需要有一个嵌套循环,将文件中的所有${text}与所有的进行比较@{lines}。
提前致谢