Hi All,
I’m building an extension which integrates with a .NET API, which exposes a service to export a chart to PDF.
If I use Selenium and PhantomJS drivers, this is the result:
Code:
var driver = new PhantomJSDriver();
driver.Manage().Window.Maximize();
driver.Navigate().GoToUrl("http://localhost:4848/extensions/PhantomJS/PhantomJS.html");
System.Threading.Thread.Sleep(TimeSpan.FromSeconds(10));
driver.GetScreenshot().SaveAsFile("screenshot.png", ScreenshotImageFormat.Png);
driver.Quit();
If I use ChromeDriver instead, it outputs the expected result:
Code:
var driver = new ChromeDriver();
driver.Manage().Window.Maximize();
driver.Navigate().GoToUrl("http://localhost:4848/extensions/PhantomJS/PhantomJS.html");
System.Threading.Thread.Sleep(TimeSpan.FromSeconds(10));
driver.GetScreenshot().SaveAsFile("screenshot.png", ScreenshotImageFormat.Png);
driver.Quit();
Has anyone come across any similar issues before with PhantomJS and Sense?
Any help, much appreciated.
Thanks,
Seb