HTML: -
<div class="row">
<div id="tl-detail-container-left" class="col-md-6">
<div class="section-title">ETL Details</div>
<ul class="info-display-cell-ltl entity-item">
<li>
<span class="vline"></span>
<div class="entity-value" title="darsht">Name: darsht</div>
</li>
我做了什么:
WebElement path=driver.findElement(By.xpath("//form/div[2]/div[1]/div[6]/div[1]/ul/li[1]");
String str= path.findElement(By.cssSelector("div[class='entity-value']")). get Text();
System.out.println(str);
请帮助我使用代码获取dynamic Text
(例如:Omarjiti)来自html。