Selenium-在提示符中显示验证码图像

Selenium-在提示符中显示验证码图像,selenium,captcha,Selenium,Captcha,我正在使用Selenium自动测试一个大型web表单,一切正常,我已经设法显示一个提示框,提示测试人员输入验证码 <tr> <td>storeEval</td> <td>prompt(&quot;Please enter captcha&quot;)</td> <td>captcha</td> </tr> <tr> <td>typ

我正在使用Selenium自动测试一个大型web表单,一切正常,我已经设法显示一个提示框,提示测试人员输入验证码

<tr>
    <td>storeEval</td>
    <td>prompt(&quot;Please enter captcha&quot;)</td>
    <td>captcha</td>
</tr>
<tr>
    <td>type</td>
    <td>id=captcha_answer</td>
    <td>${captcha}</td>
</tr>

仓库
提示(“请输入验证码”)
验证码
类型
id=验证码\u答案
${captcha}

这工作正常,但我正在寻找一种方法来显示在这个提示框中的实际验证码图像。我将生成的图像作为URL,有没有办法做到这一点?

这将帮助您,谢谢,但不是我要求的,我正在寻找一种在Prompt中显示图像的方法您正在使用Selenium IDE?