How to get capture text inside <p> Tag

84 views
Skip to first unread message

Sumit Keswani

unread,
May 19, 2013, 1:48:13 PM5/19/13
to seleniu...@googlegroups.com
Hi All,

Can anyone help in letting me know how to capture Text inside <p> tag

I need to get and verify text - "starts with" in sentence "Directory Path starts with" as "starts with" is in Select List box which is provided during input.
 




<p>
<b>Matching Criteria: </b>
<br/>
Match any of the following
<br/>
<br/>
Directory Path starts with 
<i>/NS/</i>
<br/>
AND File Name ends with 
<i>.doc</i>
<br/>
AND Owner is equal to 
<i>admin</i>
<br/>
<br/>
Directory Path is equal to 
<i>/NS/</i>
<br/>
AND File Name starts with 
<i>java</i>
<br/>
AND Owner is not equal to 
<i>user1</i>
<br/>
<br/>
<b>Content Placement:</b>
<br/>
    On ingest place the matching files in Storage Class: 
<i>Gold</i>
<br/>
</p>"

Karthik Kulkarni

unread,
May 19, 2013, 2:00:33 PM5/19/13
to seleniu...@googlegroups.com
Sumit ,

driver.findElement(By.tagName("<p>").getText()); just double check for the syntax



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages