お世話になっております。
今、あるタグ内のテキストデータ(図の赤字の部分)を取得したいのですが
上手く取得できません。
下記コードのどこが悪いのでしょうか?
お分かりの方居られましたら、ご教示下さい。
Dim elements, elements2, get_click As WebElements Set elements = Driver.FindElementsByTag("tr") For ix0 = 1 To elements.Count If elements2.Item(ix0).FindElementsByCss(" td.stCenter > a > span").Text = "在庫△ 取り置き可" Then >>ジュンク堂書店の部分 Mydata1=elements2.Item(ix0).FindElementsByCss(" td.stCenter > a > span").Text >>店舗名の部分 Mydata2=elements2.Item(ix0).FindElementsByCss("td:nth-child(2) > a").Text >>店舗名の住所部分 Mydata3=elements2.Item(ix0).FindElementsByCss("td:nth-child(3)").Text goto BB End if Next BB:
結果
Mydata1="",Mydata2="",Mydata3=""
以上、よろしくお願いします!
助けてください!

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/24 01:02
2019/07/24 02:32
2019/07/24 07:19
2019/07/24 07:22
2019/07/25 01:19
2019/07/25 01:23
2019/07/25 01:31
2019/07/25 02:28
2019/07/28 23:10