[英]I need assistance in creating a function that will read (open new browser tab)url from CSV file in Java (Selenium)
[英]Selenium Json and xml read from Url that get method open it with java
我需要知道可以從 selenium ChromeDrive 獲取 json 數據或 xml 數據嗎?
{
"name": "Rajeev",
"age": 25,
"address": {
"city": "Bangalore",
"state": "Karnataka",
"country": "India"
}
}
它很容易做到這一點
webDriver.getPageSource()
用於獲取 Web 視圖中所有內容的 getPageSource() 方法,您可以看到只需使用正則表達式刪除必要的標簽
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.