-
Hello Sir,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @rjameel, Or if you want to use a variable later, you could store it into self.open(self.data) The custom_settings_file is specifically for modifying SeleniumBase settings. If you still want to have data in a file to be used later, you can use simple Python file I/O to read from that file in a test. https://github.com/seleniumbase/SeleniumBase/tree/master/examples/boilerplates/file_parsing |
Beta Was this translation helpful? Give feedback.
Hello @rjameel,
For a start page, you could pass that on the command line with:
pytest --url=https://seleniumbase.io
Or if you want to use a variable later, you could store it into
self.data
:pytest --data=https://seleniumbase.io
The custom_settings_file is specifically for modifying SeleniumBase settings. If you still want to have data in a file to be used later, you can use simple Python file I/O to read from that file in a test. https://github.com/seleniumbase/SeleniumBase/tree/master/examples/boilerplates/file_parsing