Activity
Mon
Wed
Fri
Sun
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

More Clients with AI

Private β€’ 6.8k β€’ Free

Wifi Life

Public β€’ 179 β€’ Free

Skool Community

Public β€’ 175.8k β€’ Paid

15 contributions to Wifi Life
I need help
Hi, I've created the agency bot for Iphone 16 Pro Max, but when the bot comes to the final page where it must click "Place Order" button, it doesn't click. Here's the code ` const puppeteer = require('puppeteer-extra'); const { executablePath } = require('puppeteer'); const StealthPlugin = require('puppeteer-extra-plugin-stealth'); puppeteer.use(StealthPlugin()); const locateChrome = require('chrome-location'); let url_16 = "https://www.apple.com/shop/buy-iphone/iphone-16-pro" async function givePage() { const browser = await puppeteer.launch({headless: false, executablePath: locateChrome}) let page = await browser.newPage(); return page } async function run() { let page = await givePage(); await page.goto(url_16); await add_to_cart(page); await shipping(page); await payment(page); } async function add_to_cart(page) { await smart_click_with_pause(page, "input[data-autom='dimensionScreensize6_3inch']", 0) await smart_click_with_pause(page, "input[value='deserttitanium']", 0) await smart_click_with_pause(page, "input[data-autom='dimensionCapacity256gb']", 500) await smart_click_with_pause(page, "[id='noTradeIn_label']", 1500) await smart_click_with_pause(page, "[data-autom='purchaseGroupOptionfullprice_price']", 1000) await smart_click_with_pause(page, ".form-selector-title.rf-bfe-dimension-simfree", 1500) await smart_click_with_pause(page, "[id='applecareplus_59_noapplecare_label']", 500) await smart_click_with_pause(page, "[data-autom='add-to-cart']", 0) } async function shipping(page) { await smart_click_with_pause(page, "button[name='proceed']", 0) await smart_click_with_pause(page, "[id='shoppingCart.actions.navCheckoutOtherPayments']", 1000) await smart_click_with_pause(page, "[id='signIn.guestLogin.guestLogin']", 0) await smart_click_with_pause(page, "[id='rs-checkout-continue-button-bottom']", 500) // Writing necessary information in input(first input only with waitForSelector)
1
5
New comment 12d ago
1 like β€’ 21d
I would double check if the selector for the "Place Order" button. If it is correct, try adding a delay before you click it to see if it helps.
1 like β€’ 17d
@Gevorg Hovhannisyan this is what i changed in the payment() function. it works after adding delays. you can play around with the timing some more. async function payment(page) { await smart_click_with_pause(page, "input[name='checkout.billing.billingOptions.selectBillingOption']", 500) selector = "input[id='checkout.billing.billingOptions.selectedBillingOptions.creditCard.cardInputs.cardInput-0.cardNumber']" await page.waitForSelector(selector) await page.type(selector, "4916865117788738") await page.type("[id='checkout.billing.billingOptions.selectedBillingOptions.creditCard.cardInputs.cardInput-0.expiration']", "10/25") await page.type("[id='checkout.billing.billingOptions.selectedBillingOptions.creditCard.cardInputs.cardInput-0.securityCode']", "581") await page.click("button[id='rs-checkout-continue-button-bottom']") // Click Place Order button await new Promise(r => setTimeout(r, 10000)) await page.waitForSelector("button[id='rs-checkout-continue-button-bottom']") await new Promise(r => setTimeout(r, 3000)) console.log("done waiting") await page.evaluate(() => { console.log("checking in webrsite") const paymentButton = document.getElementById("rs-checkout-continue-button-bottom") paymentButton.click() })
What projects are you working on this week?
Happy Monday you guys! What projects or goals are you working on this week?
2
14
New comment 9d ago
1 like β€’ 19d
My team and I drew some mockups/wireframes of the website for my school capstone project. We're meeting with the client tomorrow and if it gets approved, we can start building the website
0 likes β€’ 17d
@Ilya K Yeah, we're building a website for a non-profit organization. We've been going back and forth to see what features they want and if they like the design.
Break Time Is OVER 🫑
In the coming week expect... - Two new videos coming out that are day in life vlogs - A full on SAAS launch - A sponsored video released What are YOU doing this coming week to make progress?
1
2
New comment 21d ago
0 likes β€’ 21d
I'm continuing on my basketball stats tracking app and my senior capstone project just started. I'm building a website for a local non-profit organization.
Part 3 of the Target Checkout is out!
Part 3 of the tutorial series is in "Classroom," under "Target Checkout Bot." The next video is the last video and will cover how to use Puppeteer to enter your payment information within seconds!
1
1
New comment 29d ago
CSS Selector Guide Help
please help in finding the CSS selector in puppeteer, whenever i put some ID, CLASS and attribute in waitForSelelector function it mostly gives an error or does not have any effect is there any tools or extensions for this
2
2
New comment Oct 4
2 likes β€’ Oct 4
Have you checked out the page.waitForSelector() resource in the Classroom? The short guide shows you the two ways you can pass in the selector for waitForSelector(). Just like what Ilya said, you can send your code and other stuff and we can try to help
1-10 of 15
Henry Huang
3
33points to level up
@henry-huang-1196
Hello, I'm Henry

Active 2d ago
Joined Sep 12, 2024
powered by