I have the file1 here:
#File1
class MyClass1():
def abc(self)
---
def efg(self)
---
and here's the file2:
#File2
from File1 import MyClass1
def test1()
callfromfile1 = Myclass1()
callfromfile1.abc()
def test2()
callfromfile1 = Myclass1()
callfromfile1.efg()
if __name__== "__main__":
test()
Prob:
How to call test2 method only in terminal/command prompt?
note:
1. I'm using python3
2. Should I need to add another "class (eg. MyClass2)" above in file2 in order to call the test2 specicifically?
3. Please give some example for reference.
from selenium import webdriveris there anything related toselenium? Am I missing something?Pythonicconcept and have no relation withSelenium. Update the question dropping the linefrom selenium import webdriverandseleniumtag to clear up the confusion