Fitnesse: How to populate rich text editor field using fitnesse script

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 FIELD_LABEL or [INDEX] or FIELD_LABEL[INDEX] with VALUE(S)

populate| FIELD_TYPE | field| [FIELD_INDEX]| with |VALUE(S)|

  Discussion posts and replies are publicly visible

Parents Reply
  • 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();
    }
Children