I am developing a VBA where it will open the Fitnesse link to create a new Test page and write Page name, Page content and click save.
- Am using
InternetExplorerMedium
from VBA library to access Fitnesse link to create new Test page(Success). - Then i will read content in an excel sheet into a variable(Success).
- Then i will paste the content into the text area of the new Test page created(Not Happening).
- Then i will click Save(Success)
Set IE = New InternetExplorerMedium
sURL = "FitnesseURL"
With IE
.Navigate sURL
.Visible = True
End With
IE.Document.getElementById("pagename").Value = "Dummay_Page" '--> This is Page name text Box
StrVal = <Content from Sheet1>
IE.Document.getElementById("pageContent").innerText = StrVal '--> This is Page Textarea
Set btn = IE.Document.getElementByName("save") ' -- This is a Page button
btn(0).Click
I want the content from the Sheet1 to be pasted in the Fitnesse Test page textarea but it is not happening i have tried .innerText
,.innerHTML
and .Value
options