TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Madiha Safdar
NA
2
1.5k
Unable to click on submenu via selenium c# urgent
Apr 18 2019 11:28 PM
i am new to automation testing and need some help. i want to click on child submenu but unable to do so. hirerachy of my menu is System->Manual->Manual Loader, how ever i am only successful in hovering main menu i.e. System. i am following the code given below. kindly help what to do
Note: Action builder is not working in my case or i am doing something wrong thats why it doesnt give the required output.
Actions builder =
new
Actions(driver);
// Move the cursor to the Main Menu Element (id1)
IWebElement menu = driver.FindElement(By.XPath(
"//*[@id='dvmenus']"
));
builder.MoveToElement(menu);
IWebElement menuId = driver.FindElement(By.XPath(
"//a[contains(.,'System')]"
));
//menuId.Click();
builder.MoveToElement(menuId);
WebDriverWait waitForControl =
new
WebDriverWait(driver, TimeSpan.FromSeconds(10));
IWebElement submenuId = driver.FindElement(By.XPath(
"//a[contains(.,'Manual')]"
));
builder.MoveToElement(submenuId);
//submenuId.Click();
WebDriverWait waitForControl1 =
new
WebDriverWait(driver, TimeSpan.FromSeconds(10));
IWebElement childsubmenuId = driver.FindElement(By.XPath(
"//a[contains(.,'Manual Loader')]"
));
builder.MoveToElement(childsubmenuId);
builder.Build().Perform();
i am getting this error on childsubmenuid.click "'element not interactable"
Reply
Answers (
0
)
How to convert Excel file design to html
Howto remove array index in Javascript