Extract text from an html cell from Java WebView

0

Cordial Greeting

I am using the WEBVIEW in Java to show a web page x which contains a table with data, I try to extreate said data and I have not succeeded using the following libraries.

import org.w3c.dom.html.HTMLTableElement
import org.w3c.dom.html.HTMLElement

I can not find other similar libraries with which to achieve it, I have not even allowed myself to go against the rows of the table.

According to documentation I can remove the table element of the doom in the following way.

WebView webviewBrowser = new WebView();
WebEngine engine = webviewBrowser.getEngine();
engine.load( "http://www.x.com" );
HTMLTableElement tablaStatus= ( HTMLTableElement ) engine.getDocument().getElementById( "tablaStatus" );

And with that element do everything relevant to extract the data but it does not work.

Thank you in advance.

    
asked by Andros 16.07.2018 в 01:32
source

0 answers