Cannot click on contanct elements in whatsapp web using click() function - javascript

I was trying to make a WhatsApp chatbot extension. I want to read every unread message and send those contacts some messages. I chose web scraping due to the limitations of whatsapp API and its cost. This is the command I use to click on web elements. For selecting contacts I made the function
var list = document.querySelectorAll('div[class="lhggkp7q ln8gz9je rx9719la"]') //for listing all contacts on the screen
list[0].click()//just clicking a contact of my choice for experimental purpose
but unfortunately, the contact is not being selected so I can't proceed to setting a message and sending it. Is there any way to simulate a click or something? Or am I selecting the wrong element, so the click event is not defined for it?

It is impossible to do it.
You can't do that. You need to buy whatsapp API. Or go for telegram it's free.

Related

How to connect two projects? One for typescript and another is written in bot framework c#

I am using Microsoft bot framework, and I got stuck by one application.
I would like to let the user to ask me for a link redirection first then the bot should prompt up a button to redirect user to the right page without opening a new tab or reloading the whole current page. However, for now it is by default that the link will open another tab and also reload the whole page.
Hence, I am thinking about using a typescript in Angular to get the element of that button and change its onclick event to:
this.router.navigateByUrl("/the link I want")
However, I really don't know how to invoke this onclick function since the chatbot window will not show up until the user click to open the chatbot and ask the request for a redirect link. Therefore, I must find a way somehow I can let the typescript know that the chatbot is open as well as a redirection movement modification is required.
The only attribute I got from the front end for that chatbot prompt button is its aria-label and className.
Can anyone offer some help or have gone through the same situation?
I think the best way for you to achieve this is thru the use of a component dialog on the bot side and filtering on the incoming activity action in Web Chat via the store.
Regarding the component dialog, look over the 13.core-bot sample in the BotBuilder-Samples repo. If you notice, the BookingDialog class (in BookingDialog.cs) extends the CancelAndHelpDialog. The CancelAndHelpDialog filters the incoming activities looking for specific user-entered values ("help", for example) and acts on it when hit. In your scenario, the user would enter some value that would be caught by your "RedirectDialog" and sent back to the page as an event (or other activity type) when the dialog/logic completes.
Next...
Regarding Web Chat, look over the 04.api/c.incoming-activity-event sample in the BotFramework-WebChat repo. Here, assuming your bot sent an event (housing the user's value), Web Chat would react when this specific event is received by triggering a page event. You would have an event listener setup to respond to the page event that, when triggered, could open a confirm() or modal or whatever you decide to land on to handle the redirect the user requested.
Hope of help!

How do I create outlook addin to show read receipt on action items of sent email?

I am trying to create an add-in to implement tracking an email using lead-boxer(https://leadboxer.com/) where I can get all the details of the user who has opened my email. I had implemented the add-in to send an email with an image tag with the link. So I am getting the details of users.
Now I want to add a read receipt kind of action item button on the sent email and I am not getting any solution, I want to show that icon with sent email action items which is shown here(https://i.ibb.co/nwQRMzC/Capture.png).
I had tried creating another add-in but I could not find any way to place that button on the required place i.e. with email action items.
Also, I want to make a call to API when email sender opens the sent email to check if the recipient has opened that email or not.
Outlook doesn't provide anything for customizing the reading pane action buttons. However, you may create your own form instead if you develop a COM add-in. So, you need to develop a COM add-in to be able to customize the Outlook as much as you want. See Walkthrough: Create your first VSTO Add-in for Outlook to get started quickly. Web add-ins provide a limited capability for UI customization.

Sending a notification to my Android from a button press on a website (JavaScript)

I'm trying to create a button action on a website that will send a notification alert on my phone (Kind of like a pager).
I have a button on a website, and I'm trying to determine what the best way to receive notification of that button press on my Android phone.
Basically:
Button Press on website -> Notification on phone saying button was pressed
How would I implement this in JavaScript, and what would be the best service to do so? Maybe through Google Push, or even another app that I can piggy back off of an existing IM service?
I imagine you can use 2 approaches:
Push Notifications
WebSockets
Both of them are workable solutions for your issue
Probably, Push Notifications will be easier and more resource-consuming for mobile app, so let me explain how you can do it
There are lot's of ready-to-go and FREE solutions for push notifications, for example, ConnectyCube
So the flow can be like this:
You have a user (you can create it via ConnectyCube dashboard, Users module). So you use this user on both Web and Android ends
On Android part, you authenticate this user and subscribe for push notifications
On web part, you also authenticate this user. Then send a push notifications for himself when a button was pressed
So Android user will receive a push then

Banning users from Facebook group

I'm developing a userscript in which I want to place a "ban member" button next to every post on a group's timeline. I've already coded a way to get post author's UID and place the button, but how to ban a member from a group? Is there any way to do so? Graph API is not working for me in this case.
Facebook API doesn't let you ban users via their API - basically your only option is writing a script that opens a browser and does that for you. You can do it with something headless, like PhantomJS.

Is there a way to detect in browser if user clicked on "Save as" or bookmarked the page?

I am writing a browser data analyzer which detects user activities and sends to server. This way server can provide some personalization based on users interest.
I am trying to intercept when user bookmarks page or saves the page. Then I would send this information to server so as server knows more details about users interest.
I know usually we track users interest based on what links he clicked. But I want to add more functionality to this by including client side tracking also.
I am not sure if we can do using javascript. If not javascript, can I do using something else..like an applet probably?
Any help would be appreciated. Thanks.
I don't think it's possible to intercept whether a user bookmarks a page. You could add a button that adds the page to their favorites and track that. It won't track whether or not they add it through other means though.

Categories