As per issue #56, when trying to send a simple message, the execution hang forever and nothing happened. While debugging, it was noticed that the XPATH for the search_box on _find_byusername was not correct, probably due to an app update.
In addition, seizing the PR, it is delivered a method for closing the browser after sending a message - it is advised, though, to drop a sleep after sending an image/video and before calling the method to close the browser, otherwise the message content will not be delivered correctly.
Since unit testing is not the procedure adopted on this repo, this code works perfectly with the up-mentioned change in the XPATH.
As per issue #56, when trying to send a simple message, the execution hang forever and nothing happened. While debugging, it was noticed that the XPATH for the
search_box
on _find_byusername was not correct, probably due to an app update.So, currently, this is incorrect:
And this is correct:
In addition, seizing the PR, it is delivered a method for closing the browser after sending a message - it is advised, though, to drop a sleep after sending an image/video and before calling the method to close the browser, otherwise the message content will not be delivered correctly.
Since unit testing is not the procedure adopted on this repo, this code works perfectly with the up-mentioned change in the XPATH.