Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to get selected an item from table by using select command of IDE

View previous topic View next topic Go down

How to get selected an item from table by using select command of IDE

Post by seli on Fri May 11, 2012 2:47 pm

Hi all,
I have to select an item from table by using select(selectLocator, optionLocator).......... of Selenium IDE.
I have no id for selectLocator, so I can not specify selectLocator, please help me.
I am stuck on this issue since a few days.

seli

Posts : 7
Join date : 2012-05-11

Back to top Go down

Re: How to get selected an item from table by using select command of IDE

Post by rohit13 on Fri May 11, 2012 3:36 pm

can you please share HTML of particular area.????So it will help us to solve your problem..

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: How to get selected an item from table by using select command of IDE

Post by seli on Fri May 11, 2012 4:27 pm

O.K.
Let us imagine we typed "junit" in google. I want selenium select first match i.e. first row of box with suggestions.
I give you this explanation only without any HTML of particular area, because I am a new member do not allow me to send it. It give me the following message:
"New members are not allowed to
post external links or emails for 7 days.
"

seli

Posts : 7
Join date : 2012-05-11

Back to top Go down

Re: How to get selected an item from table by using select command of IDE

Post by anbarasi on Mon May 14, 2012 4:27 pm

hi .. i faced a problem in my application like if i enter a text it should show th e matching customers in drop down that was using jquery so i tried with focus and type key command on that and it worked , im not sure that my reply may help u

anbarasi
Amateur
Amateur

Posts : 40
Join date : 2012-04-30
Age : 28
Location : chennai

Back to top Go down

Re: How to get selected an item from table by using select command of IDE

Post by vikas.gandhi on Mon May 14, 2012 4:32 pm

Hi Seli,

I will be good if you can share HTML of particular area. It would help to solve you actual problem.

For your above mentioned google problem. You can solve it like this -

selenium.type("lst-ib", "junit");
selenium.wait(3000);

selenium.click("xpath=/html/body/table/tbody/tr/td[2]/table/tbody/tr[1]/td/div/table/tbody/tr/td");

It will select first row.

Thanks,

Vikas Gandhi

vikas.gandhi

Posts : 5
Join date : 2012-03-20

Back to top Go down

Re: How to get selected an item from table by using select command of IDE

Post by seli on Tue May 29, 2012 6:31 pm

vikas.gandhi wrote:Hi Seli,

I will be good if you can share HTML of particular area. It would help to solve you actual problem.

For your above mentioned google problem. You can solve it like this -

selenium.type("lst-ib", "junit");
selenium.wait(3000);

selenium.click("xpath=/html/body/table/tbody/tr/td[2]/table/tbody/tr[1]/td/div/table/tbody/tr/td");

It will select first row.

Thanks,

Vikas Gandhi


Hi,
sorry for may delay.
It is a part form the HTML:

Code:


[table style="width: 100%;" class="gssb_m" cellpadding="0" cellspacing="0"][tr class=""][td class="gssb_a gbqfsf" dir="ltr" style="text-align: left;"]
[table style="width: 100%;" cellpadding="0" cellspacing="0"][tr][td style="width: 100%;"]
            [color=red]junit[/color]
        [/td][td]

[url=http://seleniumforum.forumotion.net/#ifl]Чувствам се късметлия »
[/url]
[/td][/tr][/table]
[/td][/tr][tr class=""][td class="gssb_a gbqfsf" dir="ltr" style="text-align: left;"]






[table style="width: 100%;" cellpadding="0" cellspacing="0"][tr][td style="width: 100%;"]junit[b] tutorial
[/b]

[/td][td]
[url=http://seleniumforum.forumotion.net/#ifl]Чувствам се късметлия »
[/url]
[/td][/tr][/table]
[/td][/tr][tr class=""][td class="gssb_a gbqfsf" dir="ltr" style="text-align: left;"]


[table style="width: 100%;" cellpadding="0" cellspacing="0"][tr][td style="width: 100%;"]
junit[b] test[/b]
[/td][td][url=http://seleniumforum.forumotion.net/#ifl]Чувствам се късметлия »[/url][/td][/tr][/table][/td][/tr][tr class=""][td class="gssb_a gbqfsf" dir="ltr" style="text-align: left;"]



[table style="width: 100%;" cellpadding="0" cellspacing="0"][tr][td style="width: 100%;"]junit[b] eclipse[/b][/td][td]
[url=http://seleniumforum.forumotion.net/#ifl]Чувствам се късметлия »[/url][/td][/tr][/table][/td][/tr][/table]




Excuse me for bed formatting. I want to select the first occurrence of word "JUnit"

seli

Posts : 7
Join date : 2012-05-11

Back to top Go down

Re: How to get selected an item from table by using select command of IDE

Post by jhonykishore on Wed Sep 12, 2012 12:35 am

Hi Guys,

I'm very new to Selenium. I got a quick question.

I'm trying to get the text from a cell of a table using the getTable method. But i don't know how to find the name of the Table?
I know the coordinates of the cell (0_2) but how do i find out the name of the table to use this method.

Here's the Automation ID of the Entire table:
chain=automationName:WDataGrid_6$1573_6$16776/automationName:WDataGrid_WDataGrid_6$1573_6$16776

This is the Syntax of the getTable method:
getTable

public java.lang.String getTable(java.lang.String tableCellAddress)
Description copied from interface: Selenium
Gets the text from a cell of a table. The cellAddress syntax tableLocator.row.column, where row and column start at 0.
Specified by:
getTable in interface Selenium
Parameters:
tableCellAddress - a cell address, e.g. "foo.1.4"
Returns:
the text from the specified cell

please help.

Thank you

jhonykishore

Posts : 1
Join date : 2012-09-12

Back to top Go down

Re: How to get selected an item from table by using select command of IDE

Post by Sponsored content Today at 6:08 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum