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.
Sahi Java Popup
Hi Narayan ,
We are using java project with our own framework to automate .
I want to read the data present in the popup ( like about the product popup) ,
we need to parser the data
Could you please help us in doing this
Thanks,
Lohith
We are using java project with our own framework to automate .
I want to read the data present in the popup ( like about the product popup) ,
we need to parser the data
Could you please help us in doing this
Thanks,
Lohith
This discussion has been closed.
Comments
Please do not post to old threads. Start a new one so that the context is right.
Could you please specify what you tried and how it is failing?
Regards,
Narayan
I am very naive user of Sahi tool . We are trying to integrate Sahi tool with our automation framework which is in Java . We are trying to get the text data present in the popup and main Browser window .
Could you please help in getting the data .
Thanks,
Lohith
String txt = browser.popup("popupName").div("divId").getText();
Data is in span class,
the data is as flows
<body>
<p class="version"><span class="style1">Version: </span>values<br />
<span class="versiongrey">Update: </span>values <br />
<span class="versiongrey">Host: </span>values<br />
<span class="versiongrey">Net Id:</span>values<br />
<span class="versiongrey">Inst Type:</span>&values<br />
<span class="versiongrey">App Deployed In:</span>JBoss</p>
I was able to get few data from using following code . we have redundant span class . can we over come with any method ?
String txt = browser.popup("about").span("style1").getText();
need to get the data like
Version: values
Update: values
Host:values
Net Id:values
Inst Type:values
App Deployed In:values
Thanks
Lohith
String txt = browser.popup("about").span("style1").parentNode().getText();
I was able to get the data as required