while passing the incident ticket number updating worknotes and changing the ticket state to resolved and click on update button,getting an exception

Lydia Bernadat Mary S 1 Reputation point

i wants to get the control for passing the ticket number in search bar and update the worknotes field and needs to change the state field to resolved and click on update button.i have tried but its shows (no such element found exception).kindly help me in this case.i have attached my sample code that i have tried.i have used seleniumc#. code:

WebDriverWait wait1 = new WebDriverWait(driver, TimeSpan.FromSeconds(20));
.sendkeys("INC0008111" + Keys.Enter);
WebDriverWait wait2 = new WebDriverWait(driver, TimeSpan.FromSeconds(20));
.SendKeys("closing the request");
SelectElement se = new SelectElement(driver.FindElement(By.Name("incident.state"))); se.SelectByIndex(3);
IWebElement ele4 = driver.FindElement(By.Id("resolve_incident"));



An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,356 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jack J Jun 24,296 Reputation points Microsoft Vendor

    @Lydia Bernadat Mary S , we noted that you are using selenium, it is a 3rd party product, I recommend that you could post your question in Github.

    0 comments No comments