I have a comments field of Rich text editor type, want to enter some text in that using Fitnesse, but couldn't find a possible way, tried everything from my end.
tried below scripts
populate| FIELD_TYPE | field| [FIELD_INDEX]| with |VALUE(S)|
Discussion posts and replies are publicly visible
Hi Monam,
did you find any solution for this issue?
Are you still using the rich text input field from the plug-in described above? If so, this is still not possible - I expect it to be unlikely that FitNesse will support entering data into plug-in components in the future as well.
We have a solution now, We are automating with custom step definition , We are navigating to the iframe of the rich text box and fill some test data and switch back to default iframe
Nice to hear! Can you please share how the script looks like?
Also interested in what your Java looked like for this.
public void fillDynamicRichText(){ int size = this.settings.getDriver().findElements(By.tagName("iframe")).size(); int numberOfProposalQuestions = size - 2; System.out.println("Noticed a totel of" + numberOfProposalQuestions + "Proposal questions"); for(int i=0; i<numberOfProposalQuestions; i++){ this.settings.getDriver().switchTo().frame(i); this.settings.getDriver().findElement(By.xpath("(//*[@id=\"quill-container\"]/div[1])")).sendKeys("Test Data value"); this.settings.getDriver().switchTo().parentFrame(); } this.settings.getDriver().switchTo().defaultContent();}