Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Set default selector to "html" for text-search methods #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 21, 2018

Conversation

mdmintz
Copy link
Member

@mdmintz mdmintz commented Nov 21, 2018

Set default selector to html for text-search methods.
(It's also optional now.)

Now you can do something like this:

self.assert_text("SOME TEXT")

instead of this:

self.assert_text("SOME TEXT", "html")

(Default selector type for selectors: by=By.CSS_SELECTOR)

Methods effected:
assert_text
is_text_visible
wait_for_text
find_text
delayed_assert_text
wait_for_text_visible
assert_text_visible

Due to keeping backwards compatibility, a few older methods remain that do the same thing as newer methods. (Method names were shortened from their previous versions.)

@mdmintz mdmintz merged commit 02d1f3c into master Nov 21, 2018
@mdmintz mdmintz deleted the default-selector-for-text-search branch November 21, 2018 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant