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.

Automate copy content from web page

edited November -1 in Sahi - Open Source
Is there a way to automate the following:

navigate to a web site: example www dot yahoo dot com
do a search on cars
once the results page shows up, copy each block of content and save it to notepad
click on the next results page and do the same thing 10 times

Thanks.

Comments

  • Hi,

    Try this if it helps..

    _debugToFile(_getText(_spandiv("abcd")), "C:\\textfile.txt");

    I am supposing that u need to get text from a spandiv. You can change it as per requirement.

    Regards,
    Pankaj.
Sign In or Register to comment.