I tried to run the codes as follows on Colab:
from selenium import webdriver
driver = webdriver.Safari()
But I got an error on Colab:
Exception: SafariDriver was not found; are you running Safari 10 or later? You can download Safari at https://developer.apple.com/safari/download/.
Could anyone help me to fix the problem?
Thank you!
Related
Guys I need help to run the robot using Selenium. When trying to run the browser it opens very quickly and closes, I can't access the amazon website. I have already updated the chromedriver to the compatible version of my browser but I still get the InvalidArgumentException message: Message: invalid argument showing the browser screen in white.
obs: I've already reinstalled the drivers for the versions I have of firefox and chrome but I still can't run.
enter image description here
enter image description here
I tried to run the robot and I couldn't because the error message is displayed
InvalidArgumentException: Message: invalid argument
Did you specify the browser and web-url arguments?
like:
open browser https://www.amazon.com/ chrome
When trying to run .get(), the automated safari window opens and tries to load the given URL, but crashes immediately with "Safari has crashed unexpectedly" window.
The snippet just the beginning of a fully functional bot I made a few months ago. When coming back and trying to run it again, I have encountered this error.
My safari does have the "allow remote automation" option checked.
The WebDriver test code provided in the documentation causes the same issue, where the automation window opens then crashes safari immediately. I am on the latest versions of safari and MacOS.
from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
class InstaBot:
def __init__(self, username, pw):
self.driver = webdriver.Safari()
self.username = username
self.driver.get("https://www.instagram.com")
Code opens automated safari window with instagram.com in the URL box, then crashes safari immediately.
Regarding browser/driver compatibility, latest versions installed, according to WebDriver Safari has native support, are there any recent compatibility issues? I have not found anything online.
Safari version 15.6, Selenium version 4.3.0, Python 3.10.5.
Select Frame keyword not working on Firefox but working on Chrome, Showing below error:
Element with locator '//iframe[#name='slideInFrame']' not found.
Trying to automate same website on Chrome and Firefox browser by using Robotframework and Selenium, same script working on Chrome but not working on Firefox. Is there any solution for Firefox, how to select frame ?
Is exactly the same code.
Can you check if your ghecko driver version is compatible with your firefox version?
I'm having a problem when launching Firefox from Selenium (using version 2.53.2).
When I launch it using:
from selenium import webdriver
driver=webdriver.Firefox()
it launches, then straight away tries to close with a "Firefox has stopped working" error.
This has been working previously, I tried to uninstall and reinstall Firefox, but I'm still getting the same problem every time.
I don't get the issue if I launch Firefox manually.
This is a know issue with Firefox 47:
https://bugzilla.mozilla.org/show_bug.cgi?id=1279127
I tried to perform drag and drop operation by following on Firefox 23.0.1 browser with Selenium WebDriver 2.35.0:
driver.action.drag_and_drop(source, target).perform
but it results into:
Selenium::WebDriver::Error::InvalidElementStateError: Cannot perform native interaction: Could not load native events component.`
Even though change log says:
2.35.0 (2013-08-14)
===================
Firefox:
* Updated Firefox native event components to support Firefox 23.
why native events error is thrown with Selenium WebDriver 2.35.0 and Firefox 23.0.1 combination?
I asked same question twice on #selenium irc channel, but no one replied to it. Help me to understand if I'm doing something wrong.