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
I doubt you will be able to test this in FitNesse because the rich text editor is a component plugin: https://community.appian.com/b/appmarket/posts/rich-text-editor. I'm pretty sure the commands will only work for OOTB components.
thanks Peter
Hi Monam,
Did you find any way to automate filling rich text fields?
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.
Good to know Please share at least step or share links.
Thanks
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();}