☰
Login
Signup
Home
›
General
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
May 6
rakeshr
Selenium webdriver error
sanjaya
May 5
in
General
I am trying to execute below code. getting error ...... *** AttributeError: 'NoneType' object has no attribute 'to_capabilities'
FYI having below versions of chrome browser and chrome driver
Chrome Version - 124.0.6367.119 (Official Build) (64-bit)
ChromeDriver version - 124.0.6367.91
=================
from kiteconnect import KiteConnect
from selenium import webdriver
token_path = "api_key.txt"
key_secret = open(token_path,'r').read().split()
kite = KiteConnect(api_key = key_secret[0])
service = webdriver.chrome.service.Service('./chromedriver')
service.start()
options = webdriver.ChromeOptions()
options = options.to_capabilities()
driver = webdriver.Remote(service.service_url,options)
driver.get(kite.login_url())
Tagged:
Selenium Webdriver
rakeshr
May 6
It's not related to kiteconnect APIs. Go through the
login FAQs here
.
This discussion has been closed.