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
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();}
Thank you nikhil.can you please where do i have to paste this code in fitnesse. do we have option in fitnesse to write code in java.
Thank you very much.Regards