@Test public void getText() { List<String> text = new ArrayList<>(); Platform.runLater(() -> { htmlEditor.marathon_select("This html editor test"); text.add(htmlEditor.getAttribute("text")); }); try { new Wait("Waiting for html text to be set.") { @Override public boolean until() { return htmlEditor.getAttribute("text").equals( "<html dir=\"ltr\"><head></head><body contenteditable=\"true\">This html editor test</body></html>"); } }; } catch (Throwable t) { } AssertJUnit.assertEquals( "<html dir=\"ltr\"><head></head><body contenteditable=\"true\">This html editor test</body></html>", htmlEditor.getAttribute("text")); }
@Override public boolean marathon_select(String value) { HTMLEditor htmlEditor = (HTMLEditor) getComponent(); htmlEditor.setHtmlText(value); return true; }
JavaFXHTMLEditor extends JavaFXElement { @Override public boolean marathon_select(String value) { HTMLEditor htmlEditor = (HTMLEditor) getComponent(); htmlEditor.setHtmlText(value); return true; } }
JavaFXHTMLEditor extends JavaFXElement { @Override public boolean marathon_select(String value) { HTMLEditor htmlEditor = (HTMLEditor) getComponent(); htmlEditor.setHtmlText(value); return true; } JavaFXHTMLEditor(Node component, IJavaFXAgent driver, JFXWindow window); }
JavaFXHTMLEditor extends JavaFXElement { @Override public boolean marathon_select(String value) { HTMLEditor htmlEditor = (HTMLEditor) getComponent(); htmlEditor.setHtmlText(value); return true; } JavaFXHTMLEditor(Node component, IJavaFXAgent driver, JFXWindow window); @Override boolean marathon_select(String value); @Override String getTagName(); @Override String _getText(); }
JavaFXHTMLEditor extends JavaFXElement { @Override public boolean marathon_select(String value) { HTMLEditor htmlEditor = (HTMLEditor) getComponent(); htmlEditor.setHtmlText(value); return true; } JavaFXHTMLEditor(Node component, IJavaFXAgent driver, JFXWindow window); @Override boolean marathon_select(String value); @Override String getTagName(); @Override String _getText(); static final Logger LOGGER; }