Python Forum
Issue while importing variable from one file to other
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue while importing variable from one file to other
#14
Quote:AttributeError: 'module' object has no attribute 'TestingPage_click'
line 47
in the program that calls the AutomationTesting_ITOM module:

# add to import of class that uses AutomationTestingPage_ITOM
import AutomationTesting_ITOM

# in __init__ of class that uses AutomationTestingPage_ITOM
ati = AutomationTestingPage_ITOM.AutomationTestingPage_ITOM()

# then to call method:

ati.method(attributes)
you don't make ant changes to AutomationTestingPage_ITOM.py
Reply


Messages In This Thread
RE: Issue while importing variable from one file to other - by Larz60+ - Aug-29-2018, 09:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Issue with calling a Class/Method in GUI File Fre3k 3 3,185 Mar-08-2020, 12:35 PM
Last Post: Fre3k

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020