-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Fix 186 #187
Fix 186 #187
Conversation
…aks coming from the unix domain sockets.
This new mobile: command restores the ability to manually set the value of all objects, including UITextField using the direct setValue() JS in UIAutomation. By default, POST /value will generate keypress events in a UITextView, as is in line with the webdriver specification. With this additon, you can now use the 'old' appium method of setting directly with setValue by using: mobile:setvalue [{ element: elementID, value: value }]
@gaige I love this! Thanks for doing the research on the socket issue and the
(or maybe it's more straightforward for @bootstraponline to do this since it's his PR--if he doesn't have time soon, I'll merge and we can do style fixes later). |
@jlipps Would you mind creating a style guide page on the wiki? I'm happy to use whatever style. It'd be helpful if the style was documented. |
I think I fixed everything. Please leave inline comments for whatever lines I missed. |
if (self.currentSocket) { | ||
self.debug("Socket closed forcibly due to exit"); | ||
self.currentSocket.end(); | ||
// self.currentSocket=null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be uncommented or removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gaige, any thoughts about that comment? also, indentation seems weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, was offline at a meeting. The commented line should be removed.
style guide added https://github.com/appium/appium/wiki/Style-guide-for-contributors |
Thanks. |
exports.setValueImmediate = function(req, res) { | ||
var element = req.body.element | ||
, value = req.body.value; | ||
if (checkMissingParams(res, {element:element,value:value})) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space after comma
line-commented on specific issues remaining |
I think |
if (self.currentSocket) { | ||
self.debug("Socket closed forcibly due to exit"); | ||
self.currentSocket.end(); | ||
// self.currentSocket=null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the old discussion went away. @gaige Is this commented out for a reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm fine leaving it commented for now, let's just fix the style and make the comment at the same level as the code, so:
self.currentSocket.end()
// self.currentSocket = null;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
added, thanks. |
I think it's ready to merge. |
self.debug("Socket closed forcibly due to exit"); | ||
self.currentSocket.end(); | ||
// self.currentSocket = null; // TODO: Why is this commented? | ||
self.currentSocket.destroy(); // close this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two lines look like they need to be indented 4 spaces
added one more note |
I miss gofmt. I fixed the latest issue. |
copyfromwindowsnetwrokshare
* Make the build more stable * Adjust language handling * Adjust language handling
copyfromwindowsnetwrokshare
* Make the build more stable * Adjust language handling * Adjust language handling
* Add urls caching logic * Tune date verification * Fix dictionary access * tune try/catch scope * simplify the condition
Fixed version of #186.