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

If you use double quotes as element locator, element methods in appcontainer-driver.js fails #67

Closed
kood1 opened this issue Jan 14, 2015 · 4 comments
Labels

Comments

@kood1
Copy link
Member

kood1 commented Jan 14, 2015

When getting element via locator, if you use double quotes the method fails to return the object since we are not escaping double quotes. We can either make it a requirement to use single quote or handle double quotes.

@kood1 kood1 added the bug label Jan 14, 2015
@seoj
Copy link
Collaborator

seoj commented Jan 14, 2015

Mind if I starting taking a look at escaping the quotes?

@kood1
Copy link
Member Author

kood1 commented Jan 14, 2015

@seoj - please feel free to start working on this and submitting a PR! :-) Thanks!

@seoj
Copy link
Collaborator

seoj commented Jan 14, 2015

For the eval() statements, instead of using eval() I was wondering if we could try something like this:

window.frames[0].$('body').append('Appended from parent');

Much safer to use than an eval() and more explicit.
Any thoughts?

@seoj
Copy link
Collaborator

seoj commented Jan 14, 2015

For now decided to simply escape the quotes. Seems like the suggestion may be more impacting.

seoj added a commit to seoj/MSL that referenced this issue Jan 14, 2015
msl-client-browser/
-Calls to jquery now escapes quotes before passing them to eval()
function.
-Added localized karma unit test for the new function
-Added README.md
-Fixed warning in package.json where "repositories" should've been
"repository"
@kood1 kood1 closed this as completed Jan 17, 2015
kood1 pushed a commit that referenced this issue May 31, 2015
msl-client-browser/
-Calls to jquery now escapes quotes before passing them to eval()
function.
-Added localized karma unit test for the new function
-Added README.md
-Fixed warning in package.json where "repositories" should've been
"repository"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants