下記コードでtdのテキストを取得する事ができません。
対応方法をご教授いただきたいです。よろしくお願いいたします。
python
1 2from selenium import webdriver 3 4driver = webdriver.Chrome() 5driver.get(URL) 6text = driver.find_element_by_css_selector('table.class tr:first-of-type td:nth-of-type(1)').text() 7
エラー内容は下記の通りです。
ERROR
1 2TypeError: 'str' object is not callable 3
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/11/20 02:47