18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Problem with accessing popup window
hi,
I'm trying to verify whether the particular image is exist in the pop-up window or not. I have recorded the step and got the following code.
assertTrue(browser
.popup("Abdominal Pain – Acute > Diagnostics > Radiology > CT – Abdomen")
.image("logo").exists());
When I'm executing the following error is occurring:
java.lang.NullPointerException
at com.zynx.fixtures.OnContentViewerPopup.verifyNewWindowExistsWithCorrectZynxEvidenceName(OnContentViewerPopup.java:36)
\workz\zynx\FunctionalTests\Twist\ZynxFunctional\scenarios\RA-SM-ViewZynxOrderOrderSetsEvidence.scn:19
Please note :
view source gave me the HTML structure
<script language="JavaScript">
</script><script language="JavaScript">
document.title = 'Abdominal Pain – Acute > Diagnostics > Radiology > CT – Abdomen';
</script><
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Evidence</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
The java script code set the document title as 'Abdominal Pain – Acute > Diagnostics > Radiology > CT – Abdomen'.
In HTML we have the title tag with 'Evidence'.
But the pop-up of is coming as 'Abdominal Pain – Acute > Diagnostics > Radiology > CT – Abdomen'.
I'm not able to access this pop-up window.
Any suggestions please...........
I'm trying to verify whether the particular image is exist in the pop-up window or not. I have recorded the step and got the following code.
assertTrue(browser
.popup("Abdominal Pain – Acute > Diagnostics > Radiology > CT – Abdomen")
.image("logo").exists());
When I'm executing the following error is occurring:
java.lang.NullPointerException
at com.zynx.fixtures.OnContentViewerPopup.verifyNewWindowExistsWithCorrectZynxEvidenceName(OnContentViewerPopup.java:36)
Please note :
view source gave me the HTML structure
<script language="JavaScript">
</script><script language="JavaScript">
document.title = 'Abdominal Pain – Acute > Diagnostics > Radiology > CT – Abdomen';
</script><
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Evidence</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
The java script code set the document title as 'Abdominal Pain – Acute > Diagnostics > Radiology > CT – Abdomen'.
In HTML we have the title tag with 'Evidence'.
But the pop-up of is coming as 'Abdominal Pain – Acute > Diagnostics > Radiology > CT – Abdomen'.
I'm not able to access this pop-up window.
Any suggestions please...........