Selenium 无法识别selenuim中的xmlns:soap表web元素

Selenium 无法识别selenuim中的xmlns:soap表web元素,selenium,selenium-webdriver,selenium-chromedriver,Selenium,Selenium Webdriver,Selenium Chromedriver,我们如何识别具有 xmlns:soap=”http://url“在其中。 我尝试了以下解决方案,但无效: driver.findElement(By.xpath("//table[namespace-uri()='http://**url**'][@class = 'selected']")); 以下是HTML代码: <table xmlns:soap="schemas.xml***********a" xmlns:html="www.***********" cellspacing="

我们如何识别具有

xmlns:soap=”http://url“
在其中。 我尝试了以下解决方案,但无效:

driver.findElement(By.xpath("//table[namespace-uri()='http://**url**'][@class = 'selected']"));
以下是HTML代码

<table xmlns:soap="schemas.xml***********a" xmlns:html="www.***********" cellspacing="0" cellpadding="0" style="width: 100%; height: 203px; table-layout: fixed;" objecttype="testenvironment" id="table_TestEnvironments" sort_col="name" sort_order="ascending" height="203px">


相关HTML、代码试用和错误堆栈跟踪请共享相关HTML?