Janet, i don't know if it would be any help but xpathexplorer is a big help for tricky x paths. and my team and i ran in to an issue with badly formated html code. we had an issue were webtest could not select a raidio button because of how it was imbeded in a table imporerly. try running jtidy on your code and making sure it is at standereds be4 uing webtest. i hope this helps in some way.
gary stillings > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: [Webtest] xpath > Date: Tue, 15 Jul 2008 09:34:39 +0200 > > Janet, > > your first XPath doesn't select a select field and the second one seems > invalid to me. Try in you browser to find the right XPath expression > allowing to select your select/option. > > Cheers, > Marc. > -- > Blog: http://mguillem.wordpress.com > > > Janet Gregory wrote: > > Hi folks, > > > > I'm new to > > > > webtest and to ajax, and am trying to figure out how to select a row in > > a table. The xpath that xpathchecker gives to me looks like this, and > > points to a single instance of Quality Assurance. > > > > " id(' > > > > userAvailableRolesTable')/tbody/tr[5]/td[2] " > > > > Can anyone tell me how to turn that statement into a > > > > webtest select. I feel like I'm doing a bit of trial and error here, and > > this is one of my "trials". If someone can shortcut my learnings, I > > would appreciate it... or point me to a nice library that shows me how > > to translate into webtest speak. > > > > "< > > > > setSelectField > > xpath="//[EMAIL PROTECTED]'userAvailableRolesTable']/tbody/tr[5]/td[2]" > > value="Quality Assurance" /> " > > > > thx, > > > > Janet > > > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest _________________________________________________________________ Need to know now? Get instant answers with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_messenger_072008

