Testing a Delphi desktop app using SikuliX and Python scripting
Hi,
Is it possible to do object orientation in SikuliX? I am trying to do a main file get a method from another file but it's not working.
main.py
- - -
import shutil
from geraCPF import geraCPF
class main():
myApp = App("Chrome")
App.
myApp.focus()
while not exists(
observe()
wait(1)
click(
type(
wait(1)
exit()
geraCPF.py
- - -
import random
class geraCPF():
def __init__(self):
def cpf_funcional_
n = [random.
s = sum(x * y for x, y in zip(n, range(10, 1, -1)))
d1 = 11 - s % 11
if d1 >= 10:
d1 = 0
s = sum(x * y for x, y in zip(n, range(11, 1, -1)))
d2 = 11 - s % 11
if d2 >= 10:
d2 = 0
return "%d%d%d%
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 CCIOLA for more information if necessary.