Chrome driver issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Chrome driver issue

Priyanka Saroch
hello All,

I am using chrome driver from Coded UI automation and am facing some issues.i have attached the error that i am getting while executing the script.
Please have a look an suggest me any needful that can help me to resolve the issues .


 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Snap001.png (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Chrome driver issue

Ramesh Sankar
Can you attach the  code......

On Tue, Aug 16, 2016 at 11:38 AM, Priyanka Saroch <[hidden email]> wrote:
hello All,

I am using chrome driver from Coded UI automation and am facing some issues.i have attached the error that i am getting while executing the script.
Please have a look an suggest me any needful that can help me to resolve the issues .


 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAOyZPcDvg4ch8AvpvuUcmcOTzc9iQXLu2XSgfSzkwzi8S54xTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Chrome driver issue

Priyanka Saroch

i cant attach the entire code dear.

On Tuesday, August 16, 2016 at 12:17:13 PM UTC+5:30, Ramesh Sankar wrote:
Can you attach the  code......

On Tue, Aug 16, 2016 at 11:38 AM, Priyanka Saroch <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RkVNKB91AwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">priyank...@...> wrote:
hello All,

I am using chrome driver from Coded UI automation and am facing some issues.i have attached the error that i am getting while executing the script.
Please have a look an suggest me any needful that can help me to resolve the issues .


 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="RkVNKB91AwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="RkVNKB91AwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1dfd5bf2-2364-4cd2-b647-7b395a7801c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Chrome driver issue

Priyanka Saroch
This is the method where the code is getting stopped now,
 but earlier it was working fine with the same below code but from 2-3 day it has stopped.

have also highlighted the code line where i am getting the error.


public static void AssertMessage(string ExpectedValue, string Classinfo)
        {
            try
            {
                Playback.PlaybackSettings.AlwaysSearchControls = true;
                BrowserWindow br = new BrowserWindow();
                if (BrowserWindow.CurrentBrowser.ToLower().Trim() == "ie")
                {
                    br.SearchProperties[UITestControl.PropertyNames.ClassName] = "IEFrame";
                }
                else
                {
                    br.SearchProperties[UITestControl.PropertyNames.Name] = WinTitle;
                }
                HtmlSpan control = new HtmlSpan(br);
                control.SearchProperties.Add(HtmlSpan.PropertyNames.ClassName, "HtmlPane");
                control.SearchProperties.Add(HtmlSpan.PropertyNames.Class, Classinfo);
                UITestControlCollection utcc = control.FindMatchingControls();    -> Here on this line i am getting this error  
                string _content = "";
                Boolean flag = false;
                foreach (UITestControl utc in utcc)
                {
                    _content = utc.GetProperty(HtmlSpan.PropertyNames.InnerText).ToString();
                    if (_content.Trim().ToLower().Replace("\r\n", "") == ExpectedValue.Trim().ToLower().Replace("\r\n", ""))
                    {
                        flag = true;
                        utc.DrawHighlight();
                        System.Console.WriteLine("Expected message is \"" + ExpectedValue + "\" Actual Found \"" +  _content  + "\" ");
                       
                        break;
                    }
                }
                if (!flag)
                {
                    string error = "Expected message is \"" + ExpectedValue + " not found. \" Actual Found \"" + _content + "\" ";
                    WriteLogs("Failed", error);
                    CreateDefect(error);
                    Assert.Fail(error);
                }
                try
                {
                    Playback.Wait(5000);
                    WinTitle = br.Title.Replace(" - Google Chrome", "").Replace(" - Internet Explorer", "").Replace(" - Mozilla Firefox", "");
                }
                catch
                { }
            }
            catch (PlaybackFailureException e)
            {
                Assert.Fail(e.Message);
                WriteLogs("Failed", e.BasicMessage);
            }

        }

And the code execution stops here itself.

On Tuesday, August 16, 2016 at 2:47:45 PM UTC+5:30, Priyanka Saroch wrote:

i cant attach the entire code dear.

On Tuesday, August 16, 2016 at 12:17:13 PM UTC+5:30, Ramesh Sankar wrote:
Can you attach the  code......

On Tue, Aug 16, 2016 at 11:38 AM, Priyanka Saroch <[hidden email]> wrote:
hello All,

I am using chrome driver from Coded UI automation and am facing some issues.i have attached the error that i am getting while executing the script.
Please have a look an suggest me any needful that can help me to resolve the issues .


 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/c63e753e-1de4-48b2-a283-5e7cd4c82a25%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/50c1290b-e563-4a42-91ae-106db82813f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.