Category : automation

so am trying to click and hold using puppeteer , i tried using a page.click inside a while loop but it didnt work let browserURL = `http://127.0.0.1:9222` ; let browser = await puppeteer.connect({ browserURL, defaultViewport: null }); const page = await browser.newPage(); while (pageContent.includes("hold")) { await page.click("div") } i also tried this await page.mouse.click(132, 103, ..

Read more

I am trying to automate some form filling. I am currently using the following code to auto fill fields. The second line is to auto click the save button. document.getElementById(‘PrimarySponser_SponserInsurerID’).value="9" document.getElementsByClassName("btn btn-success waves-effect waves-light")[0].click(); But i am having an issue with a field which is dropdown with an autocomplete search down bar. The drop down ..

Read more

I am trying to test the login functionalities using cypress, but for some reason I am unable to access the input text-box. It shows unable to find the get the element describe("User authentication", () => { beforeEach(() => { cy.visit("https://alpha.vetdrive.app/"); }); it("it takes to the correct page", () => { cy.get(‘[data-field=password]’) }); }); Source: Ask ..

Read more

The scenario is like: Go to : https://paytm.com/ Click on signup button [frame window will be opened] click on watchVideo button click on close button close the frame by clicking on X button. note: When I am running on puppeteer it is getting passed. But when i am using jest-puppeteer it is executing each line ..

Read more

so i want to load multiple storageStates into a single context in playwright but when i do this const context = await browser.newContext({ storageState: "telegram.json",storageState: "google.json" }); or this const context = await browser.newContext({ storageState: ["telegram.json","google.json"] }); none of the states is loaded. But the code below will load one storageState const context = await ..

Read more

Im using cypress to automate a form. I have added all inputs but when I click ‘Boook’ button or any button inside form, some input fields gets cleared. I am unable to submit this form because of this issue.Is there any solution to it? cy.xpath("//div[contains(@class,’specific-translator’)]/div[2]/input").first().type(‘[email protected]’,{force: true}) cy.xpath("//span[contains(text(),’Klicka’)]").first().click() cy.xpath("//div[contains(@class,’specific-translator’)]/div[2]/input").first().should(‘have.value’,’[email protected]’) cy.pause(10) cy.xpath("//span[text()=’ Boka ‘]").first().click() [translator feild is ..

Read more