-
0 votesanswersviews
带有selenium的HTML单元驱动程序不单击该按钮
我想在html单元驱动程序中单击带有onclick标签的元素 . 但它没有用 . Page source: 我尝试了以下方法 . 点击方法; public HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.CHROME,true); driver.get(appURL); WebElement dripBoxbutton = d... -
0 votesanswersviews
使用HtmlUnit从instagram获取访问令牌
由于httpURLconnection没有删除,我切换到htmlUnit以编程方式获取auth代码以从instagram获取访问令牌,然后从那里做我需要的任何东西,事情是我被困在尝试从URL检索授权代码 mysite.com/?code=ca1ec5b06a0b409293cff74ed9876a46 但我无法访问该链接,因为它似乎没有从授权URL重定向 . 这个: https://inst... -
0 votesanswersviews
无法在Selenium中找到元素(htmlUnitDriver)
我无法在selenium中找到一个元素,我使用 htmlUnitDriver . 好的驱动程序工作正常,但我无法找到谷歌搜索文本框元素 . Here is the code: import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; imp... -
1 votesanswersviews
HtmlUnitDriver单击并等待重新加载元素
我的问题是如何执行click元素以从服务器响应中获取数据?算法:1) 单击div元素 <div class="contact-button link-phone {'path':'phone', 'id':'z8rpg', 'id_raw': '519183738'} atClickTracking contact-a" data-rel="phone"...