Selenium - Using Java to download a set of links that use bootstrap glyphicons -


i having issue trying download link on page. uses bootstrap glyphicon "glyphicon-download". cannot seem find correct element. can seen on far left side of screenshot glyphicon, each 1 in column separate download link.

so in short, having trouble finding element (that guess can found html source code) can download file.

all appreciated.

here screenshot of html code when inspect download element.

glyphicon html code

here java code far

soltrahomepage.java (the part matters related issue)

import java.util.list; import org.openqa.selenium.by; import org.openqa.selenium.webdriver; import org.openqa.selenium.webelement; import org.openqa.selenium.support.findby; import org.openqa.selenium.support.how; import org.openqa.selenium.support.pagefactory; import org.openqa.selenium.support.ui.select; import org.openqa.selenium.htmlunit.htmlunitdriver;   public class soltrahomepage {  @findby(how = how.id, using = "username") private webelement username; @findby(how = how.id, using = "password") private webelement password; @findby(how = how.id, using = "loginbutton") private webelement loginbutton; @findby(how = how.link_text, using = "feeds") private webelement feeds; @findby(how = how.id, using = "feedlist") private webelement feedlist; @findby(how = how.class_name, using = "container") private webelement container; @findby(how = how.link_text, using = "default") private webelement default; @findby(how = how.css, using = "control-bar") private string control; @findby(how = how.css, using = "li.pull-right select") private webelement soltraselect;  public void download(){     **//code here download indicator//** } } 

soltradownload.java - part matters relating issue

import java.util.scanner; import org.openqa.selenium.webdriver; import org.openqa.selenium.chrome.chromedriver;   public class soltradownload {  public static void main(string[] args) {        //download indicators     soltrahomepage.download();     }  } 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -