r/SeleniumPython • • Aug 24 '23

Help Is non-functional testing that important?

Thumbnail
testorigen.com
1 Upvotes

r/SeleniumPython • • Aug 23 '23

Help Selenium not working anymore

1 Upvotes

Selenium (or chrome webdriver) stopped working.

At first it was version error so I upgraded selenium, updated chrome Version 116.0.5845.111, and got a new webdriver Version 116.0.5845.96. versions are not exact, is that a problem? there is no webdriver with the same version otherwise.

Also the error went away but I think there is a problem with finding the path since it never gets passed

driver = webdriver.Chrome(path)

Assuming im getting the path correct, are there any concerns I should have?

Thanks in advanced,


r/SeleniumPython • • Aug 17 '23

Chromedriver version does not match with chrome version

1 Upvotes

Hi everyone! This morning I found out that the latest chromedriver version on https://chromedriver.chromium.org/downloads: 114 is not compatible with my current browser version 116.

Does that mean I have to wait until an updated version of the chromedriver becomes available? Many thanks in advance!


r/SeleniumPython • • Aug 17 '23

Help Using chrome 115 but no chromedriver 115

1 Upvotes

How do I instruct selenium to use the beta version of chrome? (not chromedriver - it is finding that - but chrome itself). This is using selenium and python on linux (ubuntu 22.04).

I'm trying to use chrome 116 (which is /bin/google-chrome-beta on my system). I've already installed chromedriver 116, but when it launches it still attempts to drive the older version of chrome (115), not the beta version of chrome (116), which only results in a fatal error indicating that chromedriver 116 cannot be used with chrome 115.

I tried to replace /bin/google-chrome with /bin/google-chrome-beta but that breaks it completely.

There's a selenium chrome option for path to the executable, but that is apparently deprecated. (I didn't try it)


r/SeleniumPython • • Aug 11 '23

Help An issue in running Automated test scripts with Python through PyCharm on Apple MacBook Pro M2 (silicon) in the latest Google Chrome Browser.

1 Upvotes

On macOS Ventura (version 13.4.1) with an M2 chip with amr64 architecture, I`m trying to run tests by using PyCharm 2023 Community edition, with selenium robot framework 6.11, Python 3.11, and up to date web driver manager installed with Chrome browser (version 15.0.5790.170 (Official Build) (arm64) ) and compatible version of chrome web driver(amr64).
After running a test getting the following error :
OSError: [Errno 86] Bad CPU type in executable: '/Users/igormelnyk/PycharmProjects/python/selenium_mini_course/venv/lib/python3.11/site-packages/selenium/webdriver/common/macos/selenium-manager'
Can anybody Clarify? Thanks.
Spent about 3 hours navigating GPT, checked all versions for compatibility, Official source for Chromium and Selenium, retyped scripts in Python, reactivated the virtual environment, pip all the libraires and....... Still nothing....


r/SeleniumPython • • Aug 10 '23

Help Testsigma’s Low-Code API Testing

1 Upvotes

The open-source, low-code test automation platform Testsigma in April 2023, announced the release of their API testing feature which streamlines both the creation and execution of tests. The newest update allows users to create and manage API test assertions and data sets more efficiently! 

Let’s have a detailed look at the new features introduced and what you can do with Testsigma’s..... (Read More)


r/SeleniumPython • • Aug 07 '23

Help Automation testing with ChatGPT

Thumbnail
testorigen.com
1 Upvotes

r/SeleniumPython • • Aug 05 '23

Help Am I making too many requests?

1 Upvotes

I got IP banned for scraping a site. I know that many things could have caused this, but I'm wondering if I'm making too many requests. I have quite a few find_elements() scraping a single site. Are each of them a request to that site, resulting in potentially too many requests? I want to make one request to the site and then sort through the html to find all the bits I need without requesting the site a bunch. I'm not sure if that's what I'm already doing or not.

Hope that made sense.


r/SeleniumPython • • Aug 04 '23

Hello, please someone can explain me a simple question about web?

1 Upvotes

How the html works? I mean, it allow you to interact and is "opensource"(I know it's not a programming lang), but if I change some element to a copy of it but with little changes, the server will recognize it like the original? Is a security point, and I want to be protected against any tries of this kind in my page.


r/SeleniumPython • • Aug 04 '23

How to click on chrome’s toolbar buttons?

1 Upvotes

Big goal is I would like to make program that able to scrape the URL of the websites from my read later list on chrome.

I figure the first step is to get selenium to click on the 3 dot menu button on chromes toolbar. But this is part of the browser and not the webpage and when I try to right click to inspect it for its elements nothing happens.

How do I get selenium to interact with the browsers toolbar buttons?


r/SeleniumPython • • Jul 27 '23

How to click the like button on a YouTube video. I understand that I can do it if I Know the name of the button, but I can not find it in the HTML. Some one know how to find the name or tag of the button?

1 Upvotes

r/SeleniumPython • • Jul 25 '23

Help Breaking Free from Code Constraints with Scriptless Automation Testing

Thumbnail
testorigen.com
1 Upvotes

r/SeleniumPython • • Jul 22 '23

Selenium Python/Selenium Script To Remove All Reddit Comments

Thumbnail self.learnpython
1 Upvotes

r/SeleniumPython • • Jul 20 '23

Xpath RPA Significance in Healthcare Operations

Thumbnail
testorigen.com
1 Upvotes

r/SeleniumPython • • Jul 19 '23

issue with iwebdriver and selenium chrome

1 Upvotes

Today in the morning it was working correctly but I update chrome and it doesn't work anymore, it stays like this and starts 😥 does anyone know how to fix it.

I already tried to reinstall the previous version of chrome but it gives me the same error.

My current version of chrome is 115.xx and earlier it was with 114.xx


r/SeleniumPython • • Jul 18 '23

Python FREE CURSE - Selenium WebDriver with Python

Thumbnail
testautomationu.applitools.com
1 Upvotes

r/SeleniumPython • • Jul 18 '23

Getting a Code Coverage report With Selenium

Thumbnail opensrc.mx
1 Upvotes

r/SeleniumPython • • Jul 17 '23

Help Hi! Hoping someone can help me with polling speeds and refresh rates

1 Upvotes

Hey everyone, newer coder here, and I have spent almost a month on and off between my bootcamp and free time trying to research Selenium. I am having a bit of trouble as my code works in its entirety but my speed at which I am finding an item seems to be off. Does anyone know how one would speed up the rate at which you check the page and then refresh, I am currently sitting at around 2 seconds on a simple web page. I just dont know if I missed something somewhere. I have set the driver wait and poll frequency low and setting them where they are got me from 5 seconds to 2 seconds....but thats as fast as it will go.

The program was built to log me into my school account each day at bootcamp so the program searches for the token code and if available, inputs the token into the text boss, if not, it refreshes the page.

Below is the code snippet from that last page...needless to say I am in a bootcamp and a few people built these programs, but I was the only one to go the selenium route...and I want mine to be the best lol.

Any help would be greatly appreciated!

def check_and_refresh():
    try:
        # Find the token element
        token_element = WebDriverWait(driver, 0.01, poll_frequency=0.01).until(EC.presence_of_element_located((By.XPATH, "//span[contains(@class, 'tag is-danger')]")))

        # Token element found, retrieve the token value
        token = token_element.text

        # Input the token into the text input box
        input_box = driver.find_element(By.ID, "form-token")
        input_box.clear()
        input_box.send_keys(token)
        input_box.send_keys(Keys.RETURN)
    except (NoSuchElementException, TimeoutException):
        # Token element not found, refresh the page
        print('Refresh')
        driver.refresh()
        check_and_refresh()


check_and_refresh()

r/SeleniumPython • • Jul 17 '23

Help Web scraping with Selenium, getting the chromedriver working

1 Upvotes

Hi, so I am trying to do some webscraping for a project using Selenium and I have tried to put the file path to the chrome web driver in a variable named PATH and then tried to get it to open a web page, see code attached. When I run this i get the error also attached.

Code: "from selenium import webdriver

PATH = "/Users/josh/Downloads/chromedriver_mac64/chromedriver.exe" driver = webdriver.Chrome(PATH)

driver.get("https://google.com")"

Error: "raise NoSuchDriverException(f"Unable to obtain {service.path} using Selenium Manager; {err}") selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain chromedriver using Selenium Manager; 'str' object has no attribute 'capabilities'"

I have downloaded the version of the Chrome webdriver for my system(mac) and copied the file path to the exe. Does anyone know why this is giving an error?


r/SeleniumPython • • Jul 16 '23

Help Will Using Selenium for Twitter Account Management Lead to Account Suspension?

1 Upvotes

I'm reaching out to this community for some advice regarding the use of Selenium for managing a Twitter account.
Due to changes in Twitter's API policies, I am considering cheaper alternative methods to help a client unfollow a large number (over 12K) of users for the Twitter account of a business she acquired. One option that came to mind was using Selenium to automate the process.
My plan is to program it to unfollow up to 100 users per day, spread throughout the day, to avoid any aggressive or suspicious activity.
However, I'm unsure about the implications this might have on the account. I know that Twitter has rules about automation and I want to make sure I don't end up getting my client's account suspended.
Has anyone here used Selenium or similar tools for such purposes? If so, could you share your experiences? Also, I would greatly appreciate any tips on how to do this while staying within Twitter's rules and guidelines.


r/SeleniumPython • • Jul 16 '23

Selenium Selenium capabilities

1 Upvotes

I have just started using selenium and am wondering if it is possible to navigate to this site https://kick.com/, open a channel, navigate to the clips tab, open a clip, and then copy the clip url. I am having issues loading the videos which I have seen could be a limitation of selenium, as it is not able to handle the player?


r/SeleniumPython • • Jul 15 '23

Firefox browser closes automatically without specifying close() and quit() methods in the automation script. How to fix this issue in selenium python...

1 Upvotes

r/SeleniumPython • • Jul 13 '23

Xpath Advantageous Landscape of Integrating IoT and ERP

Thumbnail
testorigen.com
1 Upvotes

r/SeleniumPython • • Jul 11 '23

Help DeprecationWarning: Setting a profile has been deprecated

1 Upvotes

I get this warning with:

from selenium import webdriver
from selenium.webdriver.firefox.options import Options
options = Options()
options.profile = '/path/to/jenny-profile'
options.add_argument('-headless')
browser = webdriver.Firefox(options=options)

DeprecationWarning: Setting a profile has been deprecated. Please use the set_preference and install_addons methods

But I can't seem to get the right new non deprecated install_addons methods to load the profile. The above code works and I'm using it in production because, wow, it works! But would love to solve this error soon. Thanks!