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.

Database value is showing null

kplokeshkplokesh Members
edited February 2012 in Sahi - Open Source
Hi,

When I am trying to pass value from database (dynamic) to click event, it's working some times, it is not working some times, null value is coming.

ex:-

81 $db= _getDB("oracle.jdbc.driver.OracleDriver", "jdbc:oracle:thin:@192.168.72.201:1521:oraclede", "bamoracle_qa", "bamoracle_qa");
82 $list = $db.select("select dataid, name from dtree where name='"+$Cat_Fold_Name[$cnt]+"'");
83 for(var $a=0;$a < $list.length;$a++)
84 {
85 //_debug($list[$a]["DATAID"],$list[$a]["NAME"]); // GETTING OBJECT ID FROM DATABASE.......................
86 _debug($list[$a]["NAME"]);
87 var $cat_id=$list[$a]["NAME"];
88 }
89
90 _click(_link("Modified"));
91 _click(_link("Modified"));
92 _wait(3000);
93 _click(_link("/"+$cat_id+"/"));
94 //_click(_link("Sahi_Category1"));

Can any one help me on this issue ?

OS :- WINDOWS-7
Browser:- IE 9
Sahi Build:- Sahi Pro 3.6


Thanks,
Lokesh.

Comments

Sign In or Register to comment.