Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用selenium编辑电子邮件正文_Javascript_Selenium - Fatal编程技术网

Javascript 使用selenium编辑电子邮件正文

Javascript 使用selenium编辑电子邮件正文,javascript,selenium,Javascript,Selenium,编辑器字段中已包含HTML文本。 我想用硒来清除它 以下是网站的代码 <div id="EmailText" style="display: none"> <table id="tabbgcol1" cellspacing="0" cellpadding="0" style="padding: 0px; font: inherit; color: inherit;"> <tbody> <tr> <td

编辑器字段中已包含HTML文本。 我想用硒来清除它

以下是网站的代码

<div id="EmailText" style="display: none">
  <table id="tabbgcol1" cellspacing="0" cellpadding="0" style="padding: 0px; font: inherit; color: inherit;">
    <tbody>
      <tr>
        <td valign="top">
          <table width="100%" cellpadding="0" cellspacing="0" align="left" style="color: inherit; font: inherit;">
            <tbody>
              <tr>
                <td id="colcol21">
                  <p>Hello,</p>
                  <p>AS would like your feedback!</p>
                  <p>We thank you for your time and participation.</p> 
                  <p>Sincerely,</p>
                  <p>Saket</p>
                  <p>ZASD</p>
                  <span style="font-size:11px;font-family:Verdana, Arial, san-serif;"></span>
                </td>
              </tr>
            </tbody>
          </table>
        </td>
      </tr>
    </tbody>
  </table>
</div>

你好,

正如我希望你的反馈

感谢您的时间和参与。

真诚地

萨凯特

扎斯德

是否可以在此处编辑单个段落。或者我应该清除它。我无法在此处找到文本字段


使用此id
id=“colcol21”
会导致找不到元素。

是否在
标记内?请添加您尝试的代码和错误消息(如果有)。谢谢,但我已解决了它。使用id=tabbgcol1并清除整个字段。必须对id使用cssSelector。