We are using selenium for web based applications and LeanFT for desktop & Citrix apps (eg: PowerBuilder, Terminal emulator) using Java
Using LeanFT or selenium exclusively causes no issues (we use LeanFT reporter and selenium TakesScreenshot
) but the problem is, in one flow with screenshot capture, when we are switching context between LeanFT and Selenium.
What we have tried so far:
Tried switching to LeanFT screen capture if selenium getDriver
returns null
but this doesn’t, it fails if we start webDriver
first
In our framework screenshot are taken part of onTestPass
, onTestFail
so end users doesn’t have to explicitly call getScreenshot
.
Any idea what we could leverage to notify method to capture screen based on LeanFT or selenium? The goal is to create a single report, by using both the results from selenium and the ones from LeanFT
Note: We don’t want to use LeanFT for everything (due to reusability of existing scripts) and we should use LeanFT for non web related systems