Closing OS App Selector For Selenium on Mac - javascript

I'm trying to automate joining a zoom meeting via browser (not with the actual zoom application) using selenium and chromedriver (via node.js), and have run into some issues with MacOS. Currently the program navigates to the join link, waits a second for the OS App Selector popup to appear, then presses Escape to close the popup (using node-key-sender package and then node-keys-simulator), clicks the LAUNCH MEETING button, then presses escape again, and finally presses the new Join From Your Browser link.
This process works on Windows, but for some reason Mac doesn't register the escape key. The same issue occurs when using tab and enter to navigate to the cancel button and press it.
Other posts suggest to modify the chrome setup to block the popup, but none of those have been able to work for me (which one post suggested was because Google had disabled the feature).
Does anyone have any suggestions how to bypass the OS App Selector popup, either with key presses or potentially via another modification to the chromedriver options?

Realised that I could just completely avoid this screen by replacing the /j/ in the url with /wc/join/, which then gets redirected (with the password hashed and updated in the redirect) to point to the web-client join page

Related

Tab/Browser closing only eventlistener (no refresh, page unloads)

I am making a website with a user system and a login system.
I am using simple PHP scripts with mysqli functions to manage the users.
I can log in and I can log out.
My only problem seems to be that if a user closes the tab/browser, the column in the database describing if the user is logged in or not (I need that to prevent double logins because we have multiple GUIs apart from the website) is not getting reset to 0 (meaning not logged in).
I have a logout button that send me to the logout script in which I do reset the userSignedIn column, but i cannot find a solution to how to react to the tab closing.
Browser: I am using Google Chrome but would like it to work on most modern browsers.
PHP: Version 7.3.12
I have already seen this question and it's answers: Detect browser or tab closing
I have tried this solution, but apparently it is an outdated one or I am just not getting it right. I also heard it just works if there is only one tab open.
https://stackoverflow.com/a/5593734/12614408
Is there a way in 2020 to have an eventlistener that listens to tab/browser closing and not at refreshes or page unloads?

Windows service to automate a job

I am trying to automatestrong text a certain task and the procedure of it is as follows:
Open web browser (Google Chrome)
Go to a certain site
Put in username then jump to another field (like pressing the Tab
button.. it automatically log ins since I am connected to the
office network)
Type again on a certain field
Click search button etc etc
Is it better to code a windows service? Are there any other ways to do the above task? I wanted to automate it because the job is just more about Click, Type, Click, and Wait. The values are also somehow fixed so it could really be automated.

how to trigger the browser geo location request again after clicked allow

Its more for web development, I wonder once a user clicked yes on the browser's location request, then refresh the same page, it does not prompt again. I wonder what is the thing that control if its going to prompt again? Is there way to allow the prompt to trigger again with javascript?
for example the prompt looks like this in safari

From website to app to website on iOS

I'm working on an iOS app some people want to link to from their website.
While I've managed to open my app from a webpage using schemes, I wonder if, when I'm done with what I have to do in my app, I can switch back to the original website tab in safari.
To my knowledge : it is pretty straightforward to open a new page in safari from my app but I don't know if it is possible to get back to the actual original page, just like the ios9 back-to-app button would do.
I could open a new page and close it straight away with some javascript, which would probably display the original page because it's the next one in the tab list... but it doesn't feel right (does it?)
I read stuff about ios9 deep linking, still can't find anything interesting.
To achieve this is to open Safari using URLScheme. However, (afaik) Safari App doesn't have a url scheme. If the user came to your app from Chrome, than you can use its url scheme
Google Chrome has the following two URI schemes: googlechrome:// and googlechromes://
iOS 9's back to app button can't be invoked programmatically, so you can't use it as well. However in jailbreaked devices an app can mimic that, maybe that will help you http://theunlockr.com/2015/08/23/enable-back-button-ios-8-video/
I could open a new page and close it straight away with some
javascript, which would probably display the original page because
it's the next one in the tab list... but it doesn't feel right (does
it?)
It doesn't feel right at all. Because the typical behaviour for turning back to previos (or any other) application among iOS users is pressing home button twice, and selecting the app. Maybe you can simply show a message, and ask user to return Safari.

stop the event-listener operate while using website surfing

I like using the oxford dictionary site.
http://www.oxfordlearnersdictionaries.com/definition/english/loudly?q=loudly
Here is the website url when i searched a certain word, 'loudly'.
Hmm.. I'm chrome user and I also use a chrome-dictionary addon.
The feature of the dic-addon is that I can readily search a word just double click any words, then addon automatically find out what is mean by showing the little popup view located on the upper left corner of chrome browser.
The problem is, like the dic-addon, oxford dictionary site offer the same double click service.
In oxford dic site, if you just double click any words for search the meaning of word through chrome dic addon, suddenly they pick me up to a site where shows the definition of word that i double clicked, and addon's searching result page was canceled due to moved site url. How annoying.. :(
But I want to use only chrome dic addon double click feature.
And the more worse, I can't give up the use of oxford dictionary...
So.. There is any breakthrough to ignore the double click event in dictionary website?
If you open the developer tools (F12) on a page of http://www.oxfordlearnersdictionaries.com/ and they type $('.main-container').off('dblclick'); and hit enter this will disable oxfordleanersdictionaries double click feature. However this will need to be done each time you load a page.
If you know how to make Chrome Extensions you could create one that calls this code each time a www.oxfordlearnersdictionaries.com page is visited. Alternatively install something like Tampermonkey and add this line to a custom script.
I created a tampermonkey script with the following code and it works perfectly
setTimeout(function() {
$('.main-container').off('dblclick');
}, 1000);
Run at in the settings was set to document-end

Categories

Resources