Background:
I am designing a python selenium unittest where all page objects inherit from basepage class: basepage class just instantiates the webdriver, provides no navigation, some wait methods, click and send_keys methods.
Problem:
Now the problem is when I implement ui operation like click on the other page objects (e.g. login submit button) i am not able to access basepage click or wait method, I think this is because other page (e.g. login page) changed (by clicking) the state (DOM) of the basepage initiated webdriver . So is there any better way to implement it.
Basepage link-http://ift.tt/1q5lc9i
Other page that depends on the Basepage http://ift.tt/1RAE2Ls
N.B. I am new to unittesting framework
Aucun commentaire:
Enregistrer un commentaire