0

I can't able to get the dynamic webpage(Css/js) content Through Java. I ensured htmlunit, jaunt, webview and so on. Those Tools are Get the HTML(DOC) Only. ** MY question is Rendering Website Content With headless Browser in Java.**

BasK
  • 284
  • 8
  • 24

1 Answers1

0

You can try with Webdriver. selenium webdriver has feature to capture inner css values

Sadik Ali
  • 1,129
  • 10
  • 26
  • Thank @Sadik. Can you give Selenium webdriver sample program Url. – BasK Feb 13 '15 at 06:11
  • You can go through link: http://stackoverflow.com/questions/17255611/selenium-webdriver-getcssvalue-method – Sadik Ali Feb 13 '15 at 09:10
  • Also can try with java script with webdriver more detail in link http://roadtoautomation.blogspot.in/2013/09/road-to-verify-css-properties-values.html – Sadik Ali Feb 13 '15 at 09:12
  • I don't know.. that contain part of the program. can you show full program .@Sadik – BasK Feb 13 '15 at 10:13
  • Do you have any idea selenium webdriver ? – Sadik Ali Feb 14 '15 at 11:32
  • Thank @sadhik... its working fine.. http://software-testing-tutorials-automation.blogspot.in/2013/08/how-to-download-and-install-selenium.html.. but i have another doubt, how to get the Weppage content(not source code). – BasK Feb 16 '15 at 05:30
  • First you need to find out locator of page object element then use. driver.findElement(By.xpath("")).getText() it will return text of those element. – Sadik Ali Feb 18 '15 at 13:54