in reply to Re^2: Set a screenshot from Selenium package in a variable
in thread Set a screenshot from Selenium package in a variable
You have the following code:
$driver->capture_screenshot("D:/dev/drivers/snap-$browser.png");
There, you use the $browser variable to construct a part of the filename.
You can do the same for other parts of the filename:
my $target = "D:/dev/drivers/"; $driver->capture_screenshot("$target/snap-$browser.png");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Set a screenshot from Selenium package in a variable
by Chaoui05 (Scribe) on Apr 27, 2016 at 14:27 UTC |