← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676498]: Copy a text after a search

 

Question #676498 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676498

    Status: Open => Answered

RaiMan proposed the following answer:
Not really a job for SikuliX's visual features.

When working with web-content, then Selenium should be the first choice,
since it is able to "look into" the web elements. It is often combined
with SikuliX.

But in your case it is much simpler: the Chrome extension "view-source"
downloads the page-content as .htm file anyways (should be downloaded to
the standard download folder as view-source_xxx.xx.htm).

This file can simply be read by the script into a string, where you have
tons of standard Python String functions to search through the text.

... and there are packages/libraries available, that can break/parse the
HTML structure.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.