Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Using RemoteWebDriver
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Adam  
View profile  
 More options Jul 3 2012, 7:51 am
From: Adam <afin...@gmail.com>
Date: Tue, 3 Jul 2012 04:51:50 -0700 (PDT)
Local: Tues, Jul 3 2012 7:51 am
Subject: Using RemoteWebDriver

Hey Adrian,

I think I have come across a problem with extending SeleniumWebDriver I
have a couple of solutions too.

So heres what I'm running:

 public class AdamsWebdriver :SeleniumWebDriver
    {

        public AdamsWebdriver(Browser browser)
            : base(new RemoteWebDriver(new Uri(@"http://10.2.2.48:4444/wd/hub"), new DesiredCapabilities("iexplore", "9", Platform.CurrentPlatform) { IsJavaScriptEnabled = true }))
        {          
        }

        protected AdamsWebdriver(IWebDriver webDriver)
            : base(new RemoteWebDriver(new Uri(@"http://10.2.2.48:4444/wd/hub"), new DesiredCapabilities("iexplore", "9", Platform.CurrentPlatform) { IsJavaScriptEnabled = true }))
        {
        }

}

Excuse the silly name, I was jsut testing.  So running this code gives an
exception as it doesn't set _browser.  I can't set _browser and using:

 protected new bool NoJavascript
        {
            get { return false; }
        }

does not work because it references the one inside SelniumWebDriver.  I
guess there are a couple of options:

1) Make NoJavascript virtual
2) make _browser overridable

If I am using this incorrectly please let me know but to me it looks like
the codes evolved to include browser and this doesn't work with overriding
the driver.

Thanks

Adam


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.