question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

send_message1() is not working

See original GitHub issue

It looks like one of the xpath are broken. I don’t know which one. Throws UnboundLocalVariable error on line 249 of __init.py__ file

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
bekbolskycommented, Jul 27, 2022

it should work hopefully

Yes, I changed the value on that line and now it works. As I said in the comment to the issue,

It looks like one of the xpath are broken.

the problem was in xpath. And you found that broken xpath. Good job @abdullahalshubaili 👍

1reaction
euriconicaciocommented, Jul 20, 2022

Hi, @bekbolsky. I see that we may be facing some backward compatibility on Selenium versions. I’ve set a quick general fix that may help you with text messages sending: the just_type_and_send_message method. Recommended usage:

            messenger = WhatsApp()
            messenger.find_by_username("John")
            messenger.just_type_and_send_message("Bla\nBla\nBla")
            messenger.browser.quit()

Please, let us know if that works as expected. Thanks a lot for reporting the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does the SendMessage() function not work?
Another one is that SendMessage() doesn't properly simulate mouse input. The messages you are sending are normally posted to the message ...
Read more >
SendMessage not working properly
But when I run I get: SendMessage TESTMoveOtherRows has no receiver! UnityEngine.Component:SendMessage(String) RowController :D ieFunction() ...
Read more >
Messaging -> sendMessage() doesn't work · Issue #3817
So sendMessage() should not exist in the client SDK? Just in server SDK? This may be a documentation issue more than anything, and...
Read more >
browser.runtime.sendMessage not working for injected ...
I'm trying to send a message from a content script to an injected iframe that's located in the extension's file tree (using the...
Read more >
Scripting API: GameObject.SendMessage
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found