search for a field and compare it on the web page

Asked by networkdownloader

Hi All,
         I am new to programming and would like your help with a task (upgrading a wireless router) that I took up. My earlier question was answered by RaiMan, in which I could launch a browser and go to the gateway. The next part was to check the version, compare if it lower than a specific version and if it is lower than the version, upgrade the unit if not state "Version current".

My code is something like this and does not seem to work. Please let me know if I am missing something

 version="SoftwareVers.png"
   found=findAll("SoftwareVers.png")
   if found:
       msg="found,What now?"

Not sure if this is also an indent issue. PArdon me iam no python guy or guru :-)

Thank you all

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

version="SoftwareVers.png"
  found=findAll("SoftwareVers.png")
  if found:
      msg="found,What now?"

If this is not a typo, then yes, this is a indent problem again (Sikuli has told you already I guess ;-)

version="SoftwareVers.png"
found=exists(version)
if found:
    msg="found,What now?"

Can you help with this problem?

Provide an answer of your own, or ask networkdownloader for more information if necessary.

To post a message you must log in.