I am trying to run the following code.
SystemUtil.Run "Chrome.exe","https://www.mortgagecalculator.org/"
val = Browser(MortCalPage).Page(MortCalPage).WebElement("xpath:=//DIV/DIV/H3\[normalize-space\(\)=""\$.*").GetROProperty ("outertext")
But i am either getting "Failed to run the test due to an unknown error." or unable to find object error
Used a reg exp for xpath
Original Value of xpath after obj identification:
"xpath:=//DIV/DIV/H3\[normalize-space\(\)=""\$1,401\.63""\]"
Value of xpath after using reg ex:
"xpath:=//DIV/DIV/H3\[normalize-space\(\).*"