When using verifyElementPresent, I get True return value.
But when I try to extract the id as text using the following code, it shows the following in the Log =>
[info] Executing: | sourceExtract | xpath=//*[contains(@id, “10.30-13.00”)] | match1 |
[error] Missing * or REGEX in sourceExtract. Extracting a plain text doesn’t make much sense
I need to know the correct code to extract the id by partial match from the page source code.
I need to get as text by eliminating this part "10.30-13.00” of the dynamic id; remainder will be something like 55 or 36, a number.
I am stuck at this for over 2 months. Please help and please explain, I am NOT an expert.