0

I want to know if it's possible to do something like this :

if( "#in bitbucket pipeline" ):

        options = Options()
        options.headless = True
        cls.selenium = WebDriver(options=options)

else:
        cls.selenium = WebDriver()

Simply because i need to run my test in headless on bitbucket but not localy..

Python 3.6

django 3

1 Answers1

0

I was able to get over it whit a method that check if the test is running in a docker container