automation

Web Automation - Dealing with .aspx

拥有回忆 提交于 2021-01-27 17:22:18
问题 I'm trying to accomplish a little bit of automation which includes submitting a form on a webpage. The values for the form are already coded per item in the list. I've tried many different modules with Python and nothing seems to give me an answer. I don't have access to Visual Basic and I've personally never dealt with .aspx pages before. This is the Form name And I thought I was set and ready to go when I found the parameters for the form: function ShowEditForm(id, param1, param2, param3,

Web Automation - Dealing with .aspx

百般思念 提交于 2021-01-27 17:20:25
问题 I'm trying to accomplish a little bit of automation which includes submitting a form on a webpage. The values for the form are already coded per item in the list. I've tried many different modules with Python and nothing seems to give me an answer. I don't have access to Visual Basic and I've personally never dealt with .aspx pages before. This is the Form name And I thought I was set and ready to go when I found the parameters for the form: function ShowEditForm(id, param1, param2, param3,

Reading Excel file with Scala

早过忘川 提交于 2021-01-27 14:50:36
问题 I am writing a quick test that registers a user with the data from a spreadsheet. The idea is Go to the website > click register > Read excel rows A1 and B1 for email and password > use this data on registration site> finish the registration > log out > Register a new user with information from rows A2 and B2 > continue until rows in the spreadsheet are empty. I have managed to automate the registration process with random user information and now I just need to make it do the same with the

How to click a button on a website using Puppeteer without any class, id ,… assigned to it?

对着背影说爱祢 提交于 2021-01-27 14:31:03
问题 So I want to click on a button on a website. The button has no id, class,... So I should find a way to click the button with the name that's on it. In this example I should click by the name "Supreme®/The North Face® Leather Shoulder Bag" This is my code in Node.js const puppeteer = require('puppeteer'); let scrape = async () => { const browser = await puppeteer.launch({headless: false}); const page = await browser.newPage(); await page.goto('https://www.supremenewyork.com/shop/all/bags');

Vba - webscraping using ng-click

故事扮演 提交于 2021-01-27 14:23:25
问题 I am using Selenium and I would like to be able to click on the following <a ng-click="download()">download</a>' This is an 'a' tag. I am not sure how the code would be like to click onto an 'a' tag that has got ng-click in it. Dim d As WebDriver Set d = New ChromeDriver Const URL = "url of the website - not public" With d .Start "Chrome" .get URL .Window.Maximize .FindElementById("Search").SendKeys "information to search" .Wait 1000 .FindElementById("Submit").Click .Wait 1000 'then I need to

ExpectedConditions.invisibilityOfElementLocated doesn't work

孤者浪人 提交于 2021-01-27 13:40:43
问题 I have this code wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id("....."))); webDriver.findElement(By.xpath(".......")).click(); Sometimes I get exception: org.openqa.selenium.WebDriverException: unknown error: Element <a href="#" onclick="showRelatedPerson();return false;" class="button-alt button-icon">...</a> is not clickable at point (1233, 710). Other element would receive the click: <div id="jquery-msg-bg" style="width: 100%; height: 100%; top: 0px; left: 0px;"></div>

Automation support for Visual Basic 6 ListView

我是研究僧i 提交于 2021-01-27 08:20:18
问题 I need to get value/text of control via automation interface (coding with C++/C#). I tried with UI Automation API and this is some result captured by the Inspect: UI Automation recognize these control as pane and I can't get list view text item or get/set slider value as normal. Tried with other tool like MSAA, Automation Spy give the same result. After researching, I found that control with class name like ListView20WndClass , Slider20WndClass , ... belong to Visual Basic 6 control. So, Is

How to pass a headless option for my driver using Java and Selenium?

守給你的承諾、 提交于 2021-01-27 08:02:58
问题 I am setting up a chrome driver with the help of Selenium and Java. I want this driver to be executed headless but I can't find out the way. Can you explain to me what do I need to do? My code sample: System.setProperty(CHROME_PROPERTY, LINUX_CHROMEDRIVER_PATH); driver = new ChromeDriver(); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(DEFAULT_IMPLICITY_TIME, TimeUnit.SECONDS); 回答1: System.setProperty(CHROME_PROPERTY, LINUX_CHROMEDRIVER_PATH); // OS and

Start debugging specific project programmatically using EnvDTE.ExecuteCommand

梦想与她 提交于 2021-01-27 03:49:51
问题 I have a solution with multiple start-up projects, and I am trying to relaunch one of them automatically on a nightly basis, while keeping the new process attached to the same debugger. I was able to restart the process (using Process.Start ) and attach the current debugger to it, but it has not been highly reliable so far, and by design, clicking on the Stop button only detaches from the process rather than terminating it. I am aware the Visual Studio team has released a Visual Studio

Is there a way to get VMs Operating System name from Hyper-V using powershell?

房东的猫 提交于 2021-01-24 21:48:26
问题 I'm writing a script on HYPER-V host for getting VMs guest informations. Is there a way to get VMs Operating System name from Hyper-V using powershell? There are several examples using (Get-WmiObject Win32_OperatingSystem -ComputerName $vmName).name but i should get this information directly from Hyper-V because of domain restrictions. Also i'm using hyper-v module of powershell but i couldn't see any cmdlets related to OS. 回答1: This could be retrieved from guest intrinsic exchange items. #