Skip to content
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

Trim leading and trailing white space from rendered text when looking… #312

Merged
merged 1 commit into from Jul 7, 2016

Conversation

AutomatedTester
Copy link
Contributor

@AutomatedTester AutomatedTester commented Jul 7, 2016

… for link text

This allows WebDriver users to do

driver.find_element(By.LINK_TEXT "a link with a trailing space")

and have it return back

<a href=#>a link with a trailing space </a>

… for link text

This allows WebDriver users to do

driver.find_element(By.LINK_TEXT "a link with a trailing space")

and have it return back

<a href=#>a link with a trailing space </a>
@andreastt
Copy link
Member

LGTM.

@andreastt
Copy link
Member

@AutomatedTester Should we also do this for partial link text selectors?

@njasm
Copy link

njasm commented Jul 7, 2016

Hi, it make's sense to me.

@AutomatedTester
Copy link
Contributor Author

@AutomatedTester Should we also do this for partial link text selectors?

Since we are essentially doing indexOf I dont think we really need it there.

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.

None yet

3 participants