Giter Club home page Giter Club logo

Comments (3)

mdmintz avatar mdmintz commented on May 18, 2024

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.

adadale avatar adadale commented on May 18, 2024

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.

mdmintz avatar mdmintz commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.