Hi Ghanshyam, do you use the type to hide the HTML element like the following?
<input type="hidden" /> If yes, you could try to get back the type attribute with the following method if the element is present. public String[] getCSS(String uid, String cssName) Let me know if it works. Thanks, Jian On Wed, Dec 22, 2010 at 11:39 AM, ghanshyam baheti <[email protected]>wrote: > Jian, > > Thanks for reply. Just to give you more details, test case I am > writing is for dynamic screen which can be configured to hide few > fields. Need to verify whether the field is displaying on screen or > not as per configuration. > isElementPresent(uid) returns 'true' though field is hidden, so it > doesn't alone solving the purpose. > I am trying with isVisible(uid). but it didn't working for few fields. > Is there any other way-around this? > > > Thanks, > Ghanshyam Baheti > > > On 12/22/10, Jian Fang <[email protected]> wrote: > > Perhaps you only need to use either isElementPresent(uid) or > isVisible(uid). > > > > Thanks, > > > > Jian > > > > On Wed, Dec 22, 2010 at 12:25 AM, Ghanshyam <[email protected]> > wrote: > > > >> Hi All, > >> > >> I am having readonly field on screen and writing test to verify > >> weather field is availble on the screen or not? > >> > >> if(isElementPresent("Next."+elementName)){ > >> if(isVisible("Next."+elementName)){ > >> isFlag = true; > >> } > >> } > >> > >> > >> > >> Please suggest if any change in above code. > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "tellurium-users" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<tellurium-users%[email protected]> > <tellurium-users%[email protected]<tellurium-users%[email protected]> > > > >> . > >> For more options, visit this group at > >> http://groups.google.com/group/tellurium-users?hl=en. > >> > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "tellurium-users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<tellurium-users%[email protected]> > . > > For more options, visit this group at > > http://groups.google.com/group/tellurium-users?hl=en. > > > > > > > -- > Thanks, > Ghanshyam Baheti. > > I am a little pencil in the hand of a writing God who is sending a > love letter to the world. > ------------------------------------------------------------------- > > -- > You received this message because you are subscribed to the Google Groups > "tellurium-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<tellurium-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
