posthtml - get POST html code (in JAVA Eclipse) -


i searching way post html code of webpage rendered. in firefox there addon called web developper can return not "normal" sourcecode rendered sourcecode.

example: https://bs.chregister.ch/cr-portal/auszug/auszug.xhtml?uid=che-230.467.384#

i need html sourcecode of website includes content adress (in case "c/o nora stähelin" , "kraftstr. 1"). code looks this:

import org.openqa.selenium.webdriver; import org.openqa.selenium.chrome.chromedriver;  public class automation {         public static void main(string[] args) {         string exepath = "src\\seleniumautomation\\resources\\chromedriver.exe";         system.setproperty("webdriver.chrome.driver", exepath);          webdriver driver = new chromedriver();         string url = "https://bs.chregister.ch/cr-portal/auszug/auszug.xhtml?uid=che-230.467.384#";         driver.get(url);          // pre sourcecode         string pagesource = driver.getpagesource();         system.out.println(pagesource);          // post sourcecode (containing content)         // todo           // close window         driver.quit();           } } 

edit: generated html refers html after javascript changes dom.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -