I need to select the particulr text from webpage using XPATH. My Text looks like below
The "Add Account Offer" request has been submitted successfully with the order number css_334560. In the above line i need to get only "css_334560" using XPATH. Can someone help me here?
HTML :-
<div id="secondColumn" class="floatBreaker"> <div id="mainContents"> <h1>Add Account Offers </h1> <div class="infoBox"> <div class="topLine"> <div class="txtLineRight"> <div class="txtLineLeft"> <div class="txt"> <span>The "Add Account Offer" request has been submitted successfully with the order number css_334560.</span> </div> </div>
css_334560using Selenium rather you'll get entire text in span tag.