Forum Discussion
Vivek72
12 years agoContributor
Hi Alexei,
Thanks a lot for your reply. Tried and below regular expression works for me:
" ( ' [ ^ ' ] * ' ) " . The issue for me now is .innerText property. The innerText property value is Null for my application object although I can get innerText values for other web pages. I have tried changing Current project Tree models (blind try) but still couldn't manage to get innerText values. Also, If I can get any sample code then that would be of great help.
Tried below code where InStr is NullValue in my object browser:
InStr = Sys.Browser.Page(URL).Form("form1").innerText
Set regEx = New RegExp
regEx.Pattern = "('[^']*')"
regEx.Global = True
Set Matches = regEx.Execute(InStr)
For Each Match in Matches
ResStr = ResStr & Match.Value
Next
Log.Message(ResStr)
Thanks a lot for your reply. Tried and below regular expression works for me:
" ( ' [ ^ ' ] * ' ) " . The issue for me now is .innerText property. The innerText property value is Null for my application object although I can get innerText values for other web pages. I have tried changing Current project Tree models (blind try) but still couldn't manage to get innerText values. Also, If I can get any sample code then that would be of great help.
Tried below code where InStr is NullValue in my object browser:
InStr = Sys.Browser.Page(URL).Form("form1").innerText
Set regEx = New RegExp
regEx.Pattern = "('[^']*')"
regEx.Global = True
Set Matches = regEx.Execute(InStr)
For Each Match in Matches
ResStr = ResStr & Match.Value
Next
Log.Message(ResStr)
Thanks