--
You received this message because you are subscribed to the Google Groups "concordion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concordion+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/concordion/c1aef876-5f82-4f35-aff8-549ac59505a8%40googlegroups.com.
Hi
Have you tried deferring setting the screenshot taker on the extension until after the driver is constructed? It's been a while since I've looked at that code, but it might work.
Nigel
On 18/03/20 12:23 am, Juan Carlos Canal wrote:
Hi,--
I am integrating a Selenium Spring framework with concordion. I´m using ScreenshotExtension to capture errors:
@Autowiredprotected WebDriver driver;
@Extensionpublic ConcordionExtension extension = new ScreenshotExtension().setScreenshotTaker(new SeleniumScreenshotTaker(driver)).setScreenshotOnAssertionFailure(true).setMaxWidth(400);
On the other hand, i am configuring webdriver with @Bean.
My problem is: When I launch the test @Extension is loaded before Spring Context and this causes a NullPointerException in ScreenshotTaker class.
How can I solve this problem?
Thanks in advance!
You received this message because you are subscribed to the Google Groups "concordion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conco...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to concordion+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/concordion/cfcaf904-8c95-4693-9471-9f0cd4025151%40googlegroups.com.