Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Write location to the screenshot file as HTML comment

  • Loading branch information...
commit 979381f7bb46279dff2659c43c4cd5b6beb42914 1 parent 911dd8d
Alexander Menk authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Mage/Selenium/TestCase.php
View
1  lib/Mage/Selenium/TestCase.php
@@ -1546,6 +1546,7 @@ public function saveHtmlPage($fileName = null)
$fileName = $this->testId;
}
$file = fopen(SELENIUM_TESTS_SCREENSHOTDIR . DIRECTORY_SEPARATOR . $fileName . '.html', 'a+');
+ fputs($file,'<!-- Location = '.$this->_testConfig->driver->getLocation().' -->' . PHP_EOL);
fputs($file, $this->_testConfig->driver->getHtmlSource());
fflush($file);
fclose($file);
Please sign in to comment.
Something went wrong with that request. Please try again.