re-use image name
Hi there,
As I want to test my application in different browsers, i've created (so far) two different classes
firefoxTestImag
chromeTestImages():
imgDict = {}
def __init__(self):
self.imgDict = {}
self.
self.
def addImage(self, name, img):
self.
def getImage(self, name):
return self.imgDict[name]
The image names for both classes are exactly the same (except the image).
The import seems to be working fine, but when I switch from chrome to firefox it does not recognize the image anymore, just because it is still trying to find the chrome version.
Is using the reload() function the way forward, what would be the best solution for this?
Regards,
Sander
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 Sander for more information if necessary.