An elegant way to solve a GoogleReader task?
sorry I'm totally lost in the Phyton syntax and tried for some hours to to find a way to solve an easy Google Reader task, but have not enough experience to decide what way to go, and would be really glad for some advice what to do next:
The problem should be easy:
I have in Google Reader a site with "starred" articles which i like to check for:
if they are also "liked" (in most cases) and
if the are "shared" (reader was not able to update some for this)
in both cases if the symbol is not there for "sharing" or "liking", i like to add it.
-then repeat this with the next article and so on...
in reality an article looks like
x person like it (with the not checked like-symbol) (unclickable)
and as far as I see there are two ways to solve this:
first i need to search for the bottom of the article with the symbols
switchApp(
while not find(a image of the active starred article bottom line ):
and then the elegant way should be to search for the whole symbol bar on the bottom of the active article and then click selectively the symbols i like to change (or if it's already set just click on next article or "n")
-for someone how knows Phyton this should be a breeze, but i must admit that i gave up after some hours of syntax errors:
so i tried the basic way - that would be to make an image of every possible state of the symbol bar at the bottom of the active article and then press for every possibility the right symbols.
If I have 3 symbols and the first is always active, it's a breeze:
and starred liked shared
But I don't even get this one right (not to speak of the first one)
a "if then/else" Spaghetti code with the different image permutations
and for the end a "click next item" "n"
but i don't even have a clue how to end the code, when there are no more items left...
I know it's a little much to ask, but if someone can give me a little hint how to solve this, this would be great :)
Best Regards,
adrian
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask mindblaster for more information if necessary.