Click here to Skip to main content
15,177,507 members
Home / Discussions / C#
   

C#

 
AnswerRe: Code cast InvalidCastException when it "Shouldn't" Pin
OriginalGriff29-Nov-21 22:24
mveOriginalGriff29-Nov-21 22:24 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
Evilfish200030-Nov-21 3:24
MemberEvilfish200030-Nov-21 3:24 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
OriginalGriff30-Nov-21 3:50
mveOriginalGriff30-Nov-21 3:50 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
Evilfish200030-Nov-21 23:05
MemberEvilfish200030-Nov-21 23:05 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
OriginalGriff30-Nov-21 23:19
mveOriginalGriff30-Nov-21 23:19 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
Eddy Vluggen30-Nov-21 9:02
professionalEddy Vluggen30-Nov-21 9:02 
AnswerRe: Code cast InvalidCastException when it "Shouldn't" Pin
#realJSOP30-Nov-21 0:25
mva#realJSOP30-Nov-21 0:25 
Questionwhile run the code got no such element found exception seleniumc# Pin
Member 1407570327-Nov-21 21:01
MemberMember 1407570327-Nov-21 21:01 
I want to get the control for passing the ticket number in the search bar and update the work notes field and need to change the state field to resolved and click on the update button in servicenow. I have tried but it shows (no such element found exception). kindly help me in this case. I have attached the sample code that I have tried.I have used seleniumc#. I have tried many ways but still getting no such element found exception. kindly some one help me in this case.I want in c#.

Below one is the sample code which i have tried

IWebElement elem = driver.FindElement(By.Id("sysparm_search")); 
((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView();", elem); 
elem.SendKeys("INC0008111");
elem.SendKeys(Keys.Enter); 
WebDriverWait wait2 = new WebDriverWait(driver,TimeSpan.FromSeconds(20)); 
wait.Until(ExpectedConditions.ElementExists(By.Id("activity-stream-textarea"))) 
wait2.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")); ele4.Click();

AnswerRe: while run the code got no such element found exception seleniumc# Pin
OriginalGriff27-Nov-21 21:17
mveOriginalGriff27-Nov-21 21:17 
QuestionList-box item of PropertyGrid in C# could showing only once Pin
wuxianzhong26-Nov-21 3:40
Memberwuxianzhong26-Nov-21 3:40 
AnswerRe: List-box item of PropertyGrid in C# could showing only once Pin
OriginalGriff26-Nov-21 6:01
mveOriginalGriff26-Nov-21 6:01 
QuestionRe: List-box item of PropertyGrid in C# could showing only once Pin
Eddy Vluggen30-Nov-21 8:59
professionalEddy Vluggen30-Nov-21 8:59 
QuestionI want to make 2 Process Synchronization in C# with Mutex Pin
Bharat Bodage24-Nov-21 21:17
MemberBharat Bodage24-Nov-21 21:17 
AnswerRe: I want to make 2 Process Synchronization in C# with Mutex Pin
OriginalGriff24-Nov-21 22:04
mveOriginalGriff24-Nov-21 22:04 
AnswerRe: I want to make 2 Process Synchronization in C# with Mutex Pin
Richard Deeming24-Nov-21 22:31
mveRichard Deeming24-Nov-21 22:31 
QuestionSource of Integral Calculation Program Using Random Numbers Generation (Kaufman) Pin
Anvar Vaezi23-Nov-21 2:40
MemberAnvar Vaezi23-Nov-21 2:40 
AnswerRe: Source of Integral Calculation Program Using Random Numbers Generation (Kaufman) Pin
OriginalGriff23-Nov-21 4:21
mveOriginalGriff23-Nov-21 4:21 
QuestionFinding Lost Handle Pin
michaelbarb22-Nov-21 9:33
Membermichaelbarb22-Nov-21 9:33 
AnswerRe: Finding Lost Handle Pin
Gerry Schmitz22-Nov-21 10:17
mveGerry Schmitz22-Nov-21 10:17 
QuestionC# How to use place holder in string variable Pin
Mou_kol18-Nov-21 6:34
MemberMou_kol18-Nov-21 6:34 
AnswerRe: C# How to use place holder in string variable Pin
Mou_kol18-Nov-21 6:53
MemberMou_kol18-Nov-21 6:53 
AnswerRe: C# How to use place holder in string variable Pin
phil.o18-Nov-21 13:33
mvephil.o18-Nov-21 13:33 
GeneralRe: C# How to use place holder in string variable Pin
Mou_kol19-Nov-21 5:03
MemberMou_kol19-Nov-21 5:03 
AnswerRe: C# How to use place holder in string variable Pin
BillWoodruff19-Nov-21 18:00
mveBillWoodruff19-Nov-21 18:00 
GeneralRe: C# How to use place holder in string variable Pin
Mou_kol16-Dec-21 7:31
MemberMou_kol16-Dec-21 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.