automation

Puppeteer can't access HTTPS site with proxy server

女生的网名这么多〃 提交于 2021-01-29 15:42:59
问题 Here's my Nodejs code in which I'm trying to access a https site using https proxy but it doesn't seem to work, meanwhile the http proxy works fine. I have researched but nothing worked. const puppeteer = require("puppeteer-extra"); const useProxy = require("puppeteer-page-proxy"); const StealthPlugin = require("puppeteer-extra-plugin-stealth"); const AdblockerPlugin = require("puppeteer-extra-plugin-adblocker"); puppeteer.use(StealthPlugin()); puppeteer.use(AdblockerPlugin({ blockTrackers:

join google meet meetings automatically

蓝咒 提交于 2021-01-29 14:08:00
问题 I was thinking about a simple python automation script that will open and enter a google meet meeting via the link at a specific time. I am just learning, can anybody help me out 回答1: I know this isn't much of an answer, but I also use google meets. I was thinking of the same thing. Getting on to my point, try using a python library called selenium . I use it to automate daily web things every day. In my opinion it works best on linux because linux has a service called crontab or something

Handle Events in Custom Control Code Behind

泪湿孤枕 提交于 2021-01-29 13:54:50
问题 Ok, that probably is a pretty dumb question but I have searched quite a while but could not find a solution for this that works... I have a Custom control inherited from Control , which shall include code behind automation. For examble select all text of a controls TextBox when selected, or generate a list of close matches when the content of that TextBox is changed. public class vokDataGridEdit : Control { static vokDataGridEdit() { DefaultStyleKeyProperty.OverrideMetadata(typeof

How to toggle 'Use Automatic Configuration script' checkbox in IE settings without clearing the proxy URL?

丶灬走出姿态 提交于 2021-01-29 11:51:02
问题 I need to switch on the proxy to use internet and switch it off for office intranet. Manually it is tiresome. The proxy does not change. How to just toggle the check box using bat file? If the status is enabled it will disable and if disable it will enable. Nothing much. Don't want to clear the proxy string. Just enabling/disabling the checkbox. 回答1: As far as I know, generally, toggle the 'Use Automatic Configuration script' checkbox will not clear the proxy server address. But it might

Azure Pipeline - Opening RemoteWebDriver with different credentials

故事扮演 提交于 2021-01-29 11:18:42
问题 Basically we set up test automation in one environment(DEV). For this environment we use a users credentials to open the browser for all tests. So in our dev environment we have the same password set up for all users. This will be the same approach in UAT but with a different password When testing we launch the browser using impersonation and launch the browser as 'run as' for that user private static RemoteWebDriver OpenChromeBrowser(string username) { var service = ChromeDriverService

Enable\Disable Local Group policies with powershell

北城以北 提交于 2021-01-29 10:10:06
问题 I have been trying to enable or disable a Local group policy with powershell to automate the process, I tried installing Remote Server Administration Tools but it's module in powershell needs the pc to be in a domain. Is there any way to enable\disable a Local group policy with powershell? 回答1: Use the registry (note that this requires elevation): Set-ItemProperty -Path <HKLM:RegistryPath> -Name <PropertyToChange> -Value <NewValue> Example (Enabling Search Suggestions from Edge): Set

How to launch Chrome Extension using Automation (Robot Framework, etc.)

让人想犯罪 __ 提交于 2021-01-29 09:27:42
问题 I need to launch a particular chrome extension in my automation. I am currently using Selenium with Java. But I am unable to launch my chrome extension. 回答1: Basicaly there are two approaches. 1. install desired extension in runtime - https://dev.to/razgandeanu/testing-chrome-extensions-with-selenium-491b 2. manualy install desired extension do existing browser profile and use the existing profile in selenium . Like this: package packageName; import org.openqa.selenium.WebDriver; import org

Press on link inside table with vba on webpage

﹥>﹥吖頭↗ 提交于 2021-01-29 08:42:19
问题 I figured out how to navigate to the webpage and make it search for my specific input and so fourth. However when i get the list with the result i am not able to make vba click on it. I have tried different variations of: objIE.document.getElementById("isc_ListGrid_1_body$28s").Click But I'm unable to figure how to press the specifc cell (marked in blue in pic): https://imgur.com/inH25WQ I'm not getting any error's, but its not click on it either. 回答1: You want the id of the table, not the id

String matching in VBA using a predefined function

一曲冷凌霜 提交于 2021-01-29 08:41:20
问题 I have the following data which I want to match and after going through several techniques, the most favorable seems to be Levenshtein distance method – would you agree with this approach based on the below data or would you recommend some other method that would be able to match the following better in high volumes? The example of the data can be seen below: **Column1** **Column2** Modra Digest (DC) Oldstewart2 South West Local /Sunday Times (new) Oldstewart OldStewart political print Saigon

How to find cursor position of a currently focused text editable element on Mac OS X?

喜夏-厌秋 提交于 2021-01-29 08:03:48
问题 I need to perform the following task on Mac OS X: Find an application window that user is currently working in Find a currently focused element within it If the element is text editable, find current cursor position I'd like to use ATOMac, but I cannot figure out how to do this, i.e. what are correct attributes etc. Any ideas? 回答1: from atomac import getFrontMostApp def GetInsertionPoint (): try: app = getFrontmostApp() except: return -1 for element in app.textFieldsR()+app.textAreasR(): if