Comments (3)
Hi @adadale , when you run seleniumbase in pycharm, you need to install the requirements inside there first. There is a requirements.txt file at the top level. I tested with PyCharm CE... an alert message popped up in the editor asking if I wanted to install the requirements, and then I did. If PyCharm isn't giving you the alert, there should be a command in there somewhere to let you install the requirements.
from seleniumbase.
I made it successfully.Thank you very much.I want to ask another question.Because my ability of writing code is very poor,I don't know what's the meaning of database_env and message_duration,etc which are in the setUp method.I want to learn your project,but i don't know how to do it efficiently.
def setUp(self):
if self.is_pytest:
self.database_env = sb_config.database_env
self.message_duration = sb_config.message_duration
self.js_checking_on = sb_config.js_checking_on
self.ad_block_on = sb_config.ad_block_on
self.verify_delay = sb_config.verify_delay
self.timeout_multiplier = sb_config.timeout_multiplier
self.use_grid = False
from seleniumbase.
@adadale You can set message_duration to change the default time for pop-up messages to appear (in seconds), such as during demo_mode. Example:
pytest my_first_test.py --demo_mode --message_duration=2
"database_env" is for marking a row in a table when using the MySQL functionality to save test results to a MySQL DB at the end of tests. That way you can tell apart the environment where you decided to run your tests. It's not necessary.
from seleniumbase.
Related Issues (20)
- Add UC Mode `driver` methods directly into the `SB` API HOT 1
- Some elements cannot be inputted using the input method HOT 1
- Session Time Out while trying to spawn broswer in Docker HOT 1
- Timezone problem on pixelscan test HOT 2
- Failing Docker tests when running on M2 mac HOT 4
- Docker overhaul needed HOT 2
- Encountered InvalidSessionIdException occasionally in local docker run HOT 6
- Freezes on ChromeOS when loading Driver HOT 2
- How to open a file *.html? HOT 2
- Extract URL of image and not base64 HOT 1
- Can't get passed cloudflare using UC mode HOT 1
- UC Mode: Video 2 is now on YouTube! HOT 3
- Request headers not changed if UC mode and Cloudflare HOT 3
- Cannot perform click on a day on datepicker HOT 1
- try to pass ChromeDriverManager, with error HOT 1
- UC detected on linux HOT 4
- SSL Errors on MacOS when downloading chromedriver HOT 1
- Driver Exits with STATUS (selenium-grid-hub (terminated by SIGTERM)) HOT 5
- Exporting recorded script to json HOT 3
- `headless2=True` is detectable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seleniumbase.