Hello,
I use WatiN to test a web application which is created from
SharePoint. It has a menu called Site Actions Menu. It has menu item
Create Page.
<ie:menuitem
id="ctl00_PlaceHolderMainNavigation_SiteActionsMenuMain_ctl00_wsaCreatePage"
type="option" iconSrc="/images/crtpage.gif"
onMenuClick="window.location = '/CreatePage.aspx';" text="Create Page"
description="Create a page in this site." menuGroupId="100"></
ie:menuitem>
I use WatiN to create automatic test for create page function, and
there is the code:
m_iExplorer.Link(Find.ById(item =>
item.EndsWith("SiteActionsMenu"))).ClickNoWait();
m_iExplorer.TableCell(Find.ById(item =>
item.EndsWith("CreatePage"))).ClickNoWait();
It found CreatePage menu item but it doesn't do anything, it doesn't
go to URL CreatePage.aspx
And I also tried to run event onMenuClick, but i doesn't work either.
m_iExplorer.TableCell(Find.ById(item =>
item.EndsWith("ViewAllContent"))).FireEvent("onMenuClick");
Is there any solution to do that? Any help will be appreciated.
Thank you very much.
Saphia
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this message because you are subscribed to
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]