Dear All,
Thanks for the suggestions.
List<WebElement> links = driver.findElementsBy(By.tagName("a"));
Just need another suggestion . Some links return empty string if use
getText();How can i find the the text anr url for all the link
On Apr 15, 2:04 am, Lutfi Dughman <
lutf...@gmail.com> wrote:
> since webdriver is being integrated with selenium, an overlap in questions
> and inquiries is inevitable.
>
> On Thu, Apr 14, 2011 at 7:43 PM, Luke Inman-Semerau
> <
luke.seme...@gmail.com>wrote:
>
>
>
>
>
>
>
> > WebDriver does it a bit differently than Se RC.
>
> > With java:
> > WebDriver driver = new FirefoxDriver();
>
> > List<WebElement> inputs = driver.findElementsBy(By.tagName("input"));
> > List<WebElement> links = driver.findElementsBy(By.tagName("a"));
> > Etc...
>
> > Also please use the webdriver mailing list: <
webd...@googlegroups.com>
> >
webd...@googlegroups.com
>
> > -Luke
>
> > On Apr 14, 2011, at 4:18 PM, Lutfi Dughman <
lutf...@gmail.com> wrote:
>
> > using javascript you can do the following
>
> > document.getAllElementsByTagName("input") <-- you get all inputs
> > document.getAllElementsByTagName("a") <-- you get all links
> > document.getAllElementsByTagName("img") <-- you get all images
>
> > so on and so on
>
> > On Wed, Apr 13, 2011 at 1:28 PM, Raihan < <
raihan1...@gmail.com>
> >
raihan1...@gmail.com> wrote:
>
> >> HI All,
>
> >> I went to get all the elements(Like Link, Button,lebel, inage etc) in
> >> a html file using web driver. How can i get that using which java
> >> command
>
> >> Thanks
> >> Raihan
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Selenium Users" group.
> >> To post to this group, send email to <
seleniu...@googlegroups.com>
> >>
seleniu...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> <
selenium-users%2Bunsu...@googlegroups.com>