> On Jul 26, 2016, at 10:36 AM, Damianos Metallidis <[email protected]> > wrote: > > Thank you very much for the response. > Actually what i needed was a navigation timing library so us to get some > times i need. > The thing is that now i am searching for a way to get the javascript > variables from html to use them in the Java code. > > For example i get the times i want for the UserPage by inspecting the element > with Google Chrome. > I am putting some code in the UserPage in order to get the javascript > variables i want but it keeps returning me null. > > So i assume the java code executes some time before the page is rendered, > right?
Yes the HTML renders after the page’s associated java code executes. To understand the lifecycle of a wicket component, check out their javadoc: https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/Component.html It’s complicated but may give you some insight. It may also help to look at the Selenium test class which is using web driver to interrogate and set values within the pages elements. For clues you can look here: https://github.com/apache/directory-fortress-commander/blob/master/src/test/java/org/apache/directory/fortress/web/integration/FortressWebSeleniumITCase.java You also could set breakpoints in that test class and look at the element names and values as the program executes which may be helpful as well. Shawn
