Closed bhala-ki closed 10 months ago
Resolved it by the following which works absolutely fine: String currentUrl = <a href= + driver.getCurrentUrl() + ">" + driver.getCurrentUrl() + ; <PUT THE DOUBLE QUOTES WHEREVER NECESSARY ELSE IT'S TAKING AS URL>
Any other alternatives are also appreciable!
Hi,
Yes, adding valid html
when using scenario.log
is the only way to do it.
I would like to embed a URL in the report in the after Hooks. Neither of the below works: scenario.log("URL OF TEST IS: "+ pageHelpers.getCurrentUrl()); (OR)
scenario.attach(pageHelpers.getCurrentUrl(), "URL", "URL OF TEST IS: ");