Question: ```
Robot robot = new Robot();
BufferedImage screenShot = robot.createScreenCapture(new 
Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
ImageIO.write(screenShot, "JPG", new File("ScreenShot.jpg"));

```

This code will capture the screenshot of whatever is present on the desktop screen when test cases fail. But I need to take screenshot of chromedriver browser screen with URL. How can I capture the error scenario in selenium?

Answer: 
Try this:

```
WHERE ISNULL([Column],1) = CASE
                WHEN @Variable1 IN (1,2) THEN  1
                ELSE @Variable2
             END

```

P.S. Change value `1` to any value that not valid for `[Column]`.
It is not possible to test for NULL values with comparison operators, such as =, <, or <>. 

You have to use IS NULL or IS NOT NULL operators.
Rewrite your condition:

```
WHERE ([Column] IS NULL AND @Variable1 IN (1,2) 
   OR [Column] = @Variable2)
   AND ...other conditions...

```