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 Getting "Cannot call method 'indexOf' of undefined" exception while trying to open url in Chrome
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
 
Sella ra  
View profile  
 More options Oct 17 2010, 8:35 am
From: Sella ra <sellara...@gmail.com>
Date: Sun, 17 Oct 2010 18:05:57 +0530
Local: Sun, Oct 17 2010 8:35 am
Subject: Re: [selenium-users] Re: Getting "Cannot call method 'indexOf' of undefined" exception while trying to open url in Chrome

Thanks lot for your reply.

On Sat, Oct 16, 2010 at 4:29 PM, Varun Mahajan <varun....@gmail.com> wrote:
> I used the following workaround for Chrome, and it worked for me. You
> basically need to pass the '--disable-web-security' flag to the
> GoogleChromeLauncher class. One option is to modify source code and
> rebuild the selenium-server.jar, but an easier approach is to set a
> commandLine flag on a BrowserConfigurationOptions object and pass that
> to selenium.start()

> For example,

> DefaultSelenium selenium = new DefaultSelenium(location, port,
> browser, targetPath);
> BrowserConfigurationOptions bco = new BrowserConfigurationOptions();
> selenium.start(bco.setCommandLineFlags("--disable-web-security"));

> On Oct 16, 1:49 am, Sella ra <sellara...@gmail.com> wrote:
> > Hi,

> > In Chrome browser,I am getting "Cannot call method 'indexOf' of
> undefined"
> > exception while trying to navigate to the url of the application under
> test.
> > I am using Selenium RC and Java.

> > Please help me with this.

> --
> You received this message because you are subscribed to the Google Groups
> "Selenium Users" group.
> To post to this group, send email to selenium-users@googlegroups.com.
> To unsubscribe from this group, send email to
> selenium-users+unsubscribe@googlegroups.com<selenium-users%2Bunsubscribe@go oglegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/selenium-users?hl=en.


 
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.