Dear, good afternoon!
when executing the image search code, the following error appears
File “c:bot\bot\bot.py”, line 39
self.not_found(“Usuarionome”)
^
IndentationError: expected an indented block after ‘if’ statement on line 38
Dear, good afternoon!
when executing the image search code, the following error appears
File “c:bot\bot\bot.py”, line 39
self.not_found(“Usuarionome”)
^
IndentationError: expected an indented block after ‘if’ statement on line 38
Hello @keilyelson, this is an indentation problem in your code.
Here is an example of how to solve:
if not self.find(...):
self.not_found(“Usuarionome”)
Here’s the code I’m running, being generated by botcity
if not self.find( "Usuarionome", matching=0.97, waiting_time=10000):
self.not_found("Usuarionome")
self.click()
Replace with this code:
if not self.find( "Usuarionome", matching=0.97, waiting_time=10000):
self.not_found("Usuarionome")
self.click()
thanks, it was really a positioning problem in the code.