Skip to content
Advertisement

Tag: selenium

Selenium – can’t find visible element until HTML is inspected?

I am currently using Selenium for a webcrawling application, and after several successful modules, the following situation left me stuck: I’m trying to locate an element of the class “menu” with the text “Reports” that is located inside a frame named “frame_applic”. Pretty straightforward, right? Should be as simple as: Here is where it gets interesting: although no error is

Python selenium keep browser open

I am using selenium to open some browser windows for marketing reasons. I simply open my marketing sources, login via selenium and start working. The problem is, that after the code is executed selenium closes the window. All solutions havent helped much so far. I have 13 browser windows atm., which look like this: The closest solution which I found

“selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element” while clicking a ‘Next’ button with Selenium

I’m trying to click the Next button using Selenium, I’ve tried with the code below, but it ends in error. The element My code But then it outputs these errors: How can I click that button without errors? Answer This error message… …implies that the ChromeDriver was unable to locate the desired element. Locating the desired element As per the

Use mobile browser in selenium without emulating the device?

I tried to write a script in python using selenium, that should automate uploading images to an image platform. However, the problem is, that the functionality for uploading pictures is only given, when you use a mobile browser (e.g. Safari on your iPhone). In a quick research, i found that selenium supports this, but as far as i understood it,

Reducing size of pyinstaller exe

I have a simple pandas pyinstaller exe which is over 40MB. My exe example: 40MB+ for this seems a bit overkill. How can I reduce this as much as possible? One method: This however is not practical considering how big the exclusion list would be. How do I select a folder for pyinstaller to get modules from and exclude everything

Advertisement