automation

Can't log in through Facebook using Puppeteer - Error: Cookies required

。_饼干妹妹 提交于 2020-04-17 20:23:48
问题 This is my code to login using facebook to a website I'm automating: const loginButton = await page.waitForXPath( "//button[contains(@name, 'login')]" ); const email = await page.waitForSelector("#email"); const pass = await page.waitForSelector("#pass"); await page.evaluate((text) => { email.value = text; }, "my email"); await page.evaluate((text) => { pass.value = text; }, "my password"); await loginButton.click(); Usually it works well, but once every 4 or 5 times, I get the following

Can't log in through Facebook using Puppeteer - Error: Cookies required

蹲街弑〆低调 提交于 2020-04-17 20:21:47
问题 This is my code to login using facebook to a website I'm automating: const loginButton = await page.waitForXPath( "//button[contains(@name, 'login')]" ); const email = await page.waitForSelector("#email"); const pass = await page.waitForSelector("#pass"); await page.evaluate((text) => { email.value = text; }, "my email"); await page.evaluate((text) => { pass.value = text; }, "my password"); await loginButton.click(); Usually it works well, but once every 4 or 5 times, I get the following

Can't log in through Facebook using Puppeteer - Error: Cookies required

蹲街弑〆低调 提交于 2020-04-17 20:18:34
问题 This is my code to login using facebook to a website I'm automating: const loginButton = await page.waitForXPath( "//button[contains(@name, 'login')]" ); const email = await page.waitForSelector("#email"); const pass = await page.waitForSelector("#pass"); await page.evaluate((text) => { email.value = text; }, "my email"); await page.evaluate((text) => { pass.value = text; }, "my password"); await loginButton.click(); Usually it works well, but once every 4 or 5 times, I get the following

Can't log in through Facebook using Puppeteer - Error: Cookies required

百般思念 提交于 2020-04-17 20:15:36
问题 This is my code to login using facebook to a website I'm automating: const loginButton = await page.waitForXPath( "//button[contains(@name, 'login')]" ); const email = await page.waitForSelector("#email"); const pass = await page.waitForSelector("#pass"); await page.evaluate((text) => { email.value = text; }, "my email"); await page.evaluate((text) => { pass.value = text; }, "my password"); await loginButton.click(); Usually it works well, but once every 4 or 5 times, I get the following

JMeter - save assertion results as a variable

一世执手 提交于 2020-04-16 06:05:03
问题 In JMeter I have an automation test plan with several assertions. In my assertion result listener I can see the result off all assertions in a handy overview. So far so good. At the end of the test plan, I'm calling JIRA to post a new issue with the test results. I want the description of that issue to contain the overview from the assertion result listener. How can I define the assertion results as a variable, so that I can reference them later in my JIRA call? How can I map this view to a

How to view the address of the POST request made when an HTML button is clicked?

南楼画角 提交于 2020-04-16 05:42:13
问题 I am creating a project involving web scraping and web automation. I would like to first submit this form (http://rgsntl.rgs.cuhk.edu.hk/rws_prd_applx2/Public/tt_dsp_timetable.aspx) then once you submit this form, I want to scrape the HTML page that comes up. The problem is I am not sure how to submit this form through a Go program. I was previously experimenting with Selenium to emulate a web browser but now I think there may be an easier way. I think that I should be able to make a POST

How to use Cluecumber to generate reports?

一笑奈何 提交于 2020-04-14 08:09:28
问题 How to generate reports for automation tests using Cluecumber. 回答1: Posting and answering my own question in case it may be helpful to someone else. Add the Cluecumber plugin to your pom file. As of the time of this writing the most recent version is 2.3.4 but this can be checked here for updates. <plugin> <groupId>com.trivago.rta</groupId> <artifactId>cluecumber-report-plugin</artifactId> <version>2.3.4</version> <executions> <execution> <id>report</id> <phase>post-integration-test</phase>

How to Access span element and change it's value

杀马特。学长 韩版系。学妹 提交于 2020-04-12 02:30:50
问题 I am trying to create a python + selenium script in order to fetch CSV from a salesforce pardot page. Can Somebody please help me in accessing the nested span element inside the dropdown list which will be generated on button click. I am adding my code done so far and I am getting Timeout Error While running my script. from selenium import webdriver import time from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support

Android Notifications through ADB

廉价感情. 提交于 2020-04-10 04:24:43
问题 I'm writing a shell script that allows you to install an .apk on all android phones connected to a computer in parallel using Terminal . At my company we do tests on many devices and so this makes the installation part must faster. Question: I'm looking for a way to quickly identify which phones have had the .apk installed via some sort of feedback/notification. Ideally you should be able to see which phones have received the .apk just by looking at it (some sort of sound or screen flash) or

Microsoft Edge WebDriver- Unable to use default app data profile for Automation - Edge Ver 80

五迷三道 提交于 2020-04-07 08:27:10
问题 I have to use existing user login session, we will require EDGE user profile, as we observed EDGE driver doesn't use the existing user data profile it is creating a new profile every time EDGE Default Profile Path C:\Users\edge2automation\AppData\Local\Microsoft\Edge\User Data\Default (Edge driver) path - C:\Users\edge2automation\AppData\Local\Temp\scoped_dir64860_1277252271\Default 回答1: As the new Edge is based on Chromium, we can refer to the solution of using Chrome profile and change the