Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98814

To get particular value from HTML text

$
0
0

I have a scenario where i need to fetch the value of patientIId from the text returned in the format of HTML. When i query the below xpath "driver.findElement(By.Xpath("....xpath ...")).getText();"

I get the below text

  target-uri="DemographicsTab" 
  tab-appearance=" AbsoluteView TabContainer "
  appearance-class=" AbsoluteView TabContainer " title="">
  <argument local-name="PagePatientIID" value="10032" />
  <argument local-name="Patient" value="10032" />
  <argument local-name="PagePatientDemographicsIID" value="53" />
  <argument local-name="Node" value="DemographicsTab" />
  <argument local-name="CurrentFrame" value="ContentFrame" /><argument local-name="CurrentViewTargetName" value="DemographicsTab" />
  </view>"

Kindly help me in getting the value of "PagePatientDemographicsIID" from the above text.
i.e i need the **value = "53"**

Thanks In Advance


Viewing all articles
Browse latest Browse all 98814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>