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.
How to copy text
Hi
In our application after giving all information it will create a case with specific number specifieng "Case Created Successfully" followed by C ase referance number.I want to copy that Case referance number i am cliching on that no and try to copy its not working.How i can copy that no so that i can pass it in a variable for furthur process.
Please help me out on this because it became a blocker for my automation process.
Thanks
Aparanji
In our application after giving all information it will create a case with specific number specifieng "Case Created Successfully" followed by C ase referance number.I want to copy that Case referance number i am cliching on that no and try to copy its not working.How i can copy that no so that i can pass it in a variable for furthur process.
Please help me out on this because it became a blocker for my automation process.
Thanks
Aparanji
This discussion has been closed.
Comments
var $caseNo = _getText(_cell("caserefid"));
var $caseNo = _getText(_cell(0, _near(_cell("Case reference number"))));
Regards,
Narayan
Thanks for your fast reply.Actually i tried the answer you suggested
Error is coming like
_sahi.setServerVar('___lastValue___1290070168768', _getText(_cell("FADV Reference #:")));
Error: The parameter passed to _getText was not found on the browser
No trace available
So can you suggest me some other way to copy the value.
Thanks
Aparanji
please any one suggest me some answer for my question
Thanks in advance
Aparanji
Go to the web page where you should see the control, paste _getText(_cell("FADV Reference #:")) into the "Evaluate expression" box in Controller's recorder tab, and click "Highlight". If it cannot find it, modify the expression and check till you get it right.
In your case I think you need a regular expression to match it. Try with
_getText(_cell("/FADV Reference #:/"))
Regards,
Narayan
Thank you for your reply.
YES its working for me.
Thankyou very much
Regards
Aparanji