konikoo
V2EX  ›  问与答

请教个定位 taobao 的联想搜索列表的问题

  •  
  •   konikoo · Jan 25, 2019 · 1693 views
    This topic created in 2694 days ago, the information mentioned may be changed or developed.

    想要定位 tabaotaobao 的联想搜索列表(如下图),但是通过 Chrome 的 inspect,我没看到这个联想搜索的相关信息。 https://drive.google.com/open?id=1BhpXsNFGv29GdjrHnnLUkFj1vtHXq-z3

    如果是谷歌搜索的联想功能,可以很简单的用以下的方式获取。 List<webelement> lstGoogle = driver.findElement(By.xpath("//ul[@role='listbox']")) .findElements(By.xpath("//li[@role='presentation']"));</webelement>

    不通过截图识别的方式,请问有懂的前辈知道获取淘宝的联想搜索建议吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   936 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:53 · PVG 05:53 · LAX 14:53 · JFK 17:53
    ♥ Do have faith in what you're doing.