How could I return some parameter from 1 method and use it as input parameter in another method?
I have 2 methods and need to communicate between them
I have 2 methods and need to communicate between them
[CodedStep("Copy and convert Contact URL")] public string Copy_ContactURL() { // Copy URL of current Contact string contactURL = ActiveBrowser.Url.ToString(); // Convert URL var nameValueCollection = HttpUtility.ParseQueryString(contactURL); string[] paramArray = { "preloadcache", "pagemode", "rof", "extraqs" }; for (int i = 0; i < paramArray.Length; i++) { nameValueCollection.Remove(paramArray[i]); } contactURL = HttpUtility.UrlDecode(nameValueCollection.ToString()); return contactURL; }...... [CodedStep("Open Contact")] public void OpenContact(string contactURL) { ActiveBrowser.NavigateTo(contactURL); }