Hi so Im new to behave + python. I need some simple explanation of what context is and how it's working for my project. Where and when need to by passing. Like sometime Im passing only context and in some cases self.context :(
I read the documentation of behave which is not incomprehensible for me. I know that context is a "bag" where we putting every thing but where I should use this? And how to accecc this data 'bag'. I need some live examples. thanks
def __init__(self, context):
self.context = context
self.driver = self.context.driver
or
def step_impl(context):
context.announcement_page = context.personal_page.offer_type()