I have a website in which I need to identify/read the text inside and which in turn inside tag as shown below:
<div class="col-sm-4 execution-data-container">
<div>...</div>
<div>
<label>
<Strong>Submitted</Strong>
</label>
</div>
<div>...</div>
<div>...</div>
</div>
I prefer to use CSS Selector for that is our project preference. I tried to do like this:
//div[@class='col-sm-4 execution-data-container']/div/div/label/Strong[text() = 'Completed']
and:
div.col-sm-4.execution-data-container > div > div >
label.text()
and:
div.col-sm-4.execution-data-container > div > div >
label[text()='Completed']
By building a CSS Selector, I want to obtain the text 'Submitted'.