课堂内的硒编辑属性



我最近一直在做GPS数据处理的工作。最近,我用来处理数据的网站已发生了很大变化,我的旧代码不再正确运行。以下是我需要编辑的新HTML的片段。是否有任何方法可以将" title"属性从"无"更改为'trm55971.00 none'(实际天线我的GPS数据(之类的东西?感谢提前的帮助!

如果您有兴趣,这里是链接:https://www.ngs.noaa.gov/opus/

<span class="select2-selection__rendered" id="select2-ant_type-container" title="NONE">NONE</span>

要将'title'属性从'更改为'none' to 'TRM55971.00无'您可以使用以下代码块:

driver.execute_script("document.getElementById('select2-ant_type-container').title='TRM55971.00 NONE';");

最新更新