webautomation

Automatic checkout with selenium

Automatic checkout with selenium Question: I am trying to get a automatic checkout code for this website (you will need to go to here and then add a random item to cart in order to access the checkout page) I have used Selenium IDE to record and export the process of filling out credit card …

Total answers: 1

What are the differences between Python Playwright sync vs. async APIs?

What are the differences between Python Playwright sync vs. async APIs? Question: I’ve started learning playwright-python and the package playwright has the two submodules async_api and sync_api. However I could not find any deeper description or discussion on their respective benefits and drawbacks. From their names I assume that the synchronous API calls are blocking …

Total answers: 1

How do you open multiple pages asynchronously with Playwright Python?

How do you open multiple pages asynchronously with Playwright Python? Question: I want to open multiple urls at once using Playwright for Python. But I am struggling to figure out how. This is from the async documentation: async def main(): async with async_playwright() as p: for browser_type in [p.chromium, p.firefox, p.webkit]: browser = await browser_type.launch() …

Total answers: 2

Using Playwright for Python, how do I select (or find) an element?

Using Playwright for Python, how do I select (or find) an element? Question: I’m trying to learn the Python version of Playwright. See here I would like to learn how to locate an element, so that I can do things with it. Like printing the inner HTML, clicking on it and such. The example below …

Total answers: 4

How can I login to a website with Python?

How can I login to a website with Python? Question: How can I do it? I was trying to enter some specified link (with urllib), but to do it, I need to log in. I have this source from the site: <form id=”login-form” action=”auth/login” method=”post”> <div> <!–label for=”rememberme”>Remember me</label><input type=”checkbox” class=”remember” checked=”checked” name=”remember me” /–> …

Total answers: 7