18 January 2026:


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.

_spandiv problem

ShwethaShwetha Members
edited November -1 in Sahi - Open Source
Hi all,
Even I am having a problem with _spandiv function.In my application, When a button is pressed a popup has to appear. I need to check in the script if that popup has appeared. Also I have to check if a Folder name is present in that pop up. So I have used assert_assertExists(_spandiv("publishPopUpForm:revokeFolderTree:"+$FldrIdName[2]+"::outTxtShortAdminRefFldrName"));

This assertion is returning false and i am unable to retrieve the text from there. Please help.

Comments

  • narayannarayan Administrators
    Use the Sahi Controller to check if that _spandiv is identifiable with that expression.
    There was a bug in spandiv in one of the previous versions.
    Use _span or _div (depending on whether the html tag is a span or a div) instead of _spandiv and check.
  • ShwethaShwetha Members
    I checked it in the controller. The html tag is _span. So i used span.It is not working. I need to just check if the popup has appeared. I also tried to check the offset value, if offset width is zero we can say there is no pop up. But this also is not working to identify the popup. I have given enough of wait.
    Can anyone please tell me if there is any other way to identify a popup.
Sign In or Register to comment.