Metadata-Version: 2.4
Name: scenario_thinker
Version: 0.1.1.2
Summary: BDD and AI library
Home-page: https://github.com/me3eh/scenario_thinker
Author: Me3eh
Author-email: matt30002000@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: behave>=1.2.5
Requires-Dist: selenium>=4.26.1
Requires-Dist: flask>=3.0.3
Requires-Dist: Flask-Cors>=5.0.0
Requires-Dist: ipdb>=0.13.13
Requires-Dist: requests>=2.31.0
Requires-Dist: dotenv>=0.0.5
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# Scenario Thinker
BDD and AI combined - generate yourself Python scripts in selenium using BDD scenarios.

# Setup
Before all, the best approach would be to make virtual environment:
```bash
python3 -m venv venv
```

After installing this library,
you can initialize all the files:
```bash
st_prepare
```

This will create flask server code in your project location. Also it will copy view for interacting with generating code itself, view for controlling generated 
and their styles and js scripts for them + .env file . It's highly recommended to not change them, unless you know what you're doing. 



Add .env file

Add there token from AI ML API like this:
AI_ML_API_VALUE = "xxx"


Start server with `flask run` and and start working with your scenario. Open file in generated `views` that means views/index.html and put there scenario feature. 
Scenario feature should look like this
```feature
 Feature: showing off behave
Scenario: run a simple test
Given visiting site localhost:3000/button_with_redirect
When I click button with text "Go to my favorites"
Then I will be redirected into site localhost:3000/my_favourites
```
After that, start program and hope for the best. 
