Uncaught ReferenceError: bite is not defined

72 views
Skip to first unread message

ak capri

unread,
Dec 19, 2011, 11:43:32 AM12/19/11
to bite-discuss
HI

I am able to load the BITE extension but getting error as 'bite i
snot defined' while loging.

Steps:
Once I loaded the BITE extension, I updated '\bite-project\src\client
\content.js' as

bite.options.constants.ServerChannelOption = {'localhost:8080'};

After that I clicked on BITE image and it shows blank hover on top.
Then I click on 'Inspect Popup' and I got the error message.

Please do let me know the solution.

Jason Stredwick

unread,
Dec 19, 2011, 11:46:26 AM12/19/11
to bite-discuss
How old is the code you are using? When did you last clone/pull the
repository?

It will help me identify the issue. I have been fixing a lot of these
small issues, but don't recall off the top of my head the fix but do
remember fixing it.

ak capri

unread,
Dec 19, 2011, 8:34:01 PM12/19/11
to bite-discuss
HI Jason

4 days back (16th Dec 2011)I have downloaded bite-project from
'http://code.google.com/p/bite-project/downloads/list '. I downloaded
with dependent one.

hope this will help you.

Jason Stredwick

unread,
Dec 19, 2011, 8:46:49 PM12/19/11
to bite-discuss
I see. If you downloaded the source from the downloads page then you
are not using the most current version. Only the most current version
has the fix you are referring to. I am not sure of the specific fix.
I would recommend checking out the most current code and trying that.
If that is not a possibility then, I may be able to track down the
issue again.

ak capri

unread,
Dec 20, 2011, 11:29:29 AM12/20/11
to bite-discuss
Hi Jason
Sorry to say but I downloaded the recent file but still the issue
persist.

I am updating 'bite-project\src\client\options\constants.js' file
for

bite.options.constants.ServerChannelOption = {"localhost:8080"}


Can you please help me?

~Thanks

Jason Stredwick

unread,
Dec 20, 2011, 11:45:58 AM12/20/11
to bite-discuss
I apologize, I didn't notice but the line that sets the server channel
needs to be something like

bite.options.constants.ServerChannelOption = {
DEV: 'localhost:8080',
BETA: 'localhost:8080',
EXTERNAL: 'localhost:8080',
RELEASE: '8080'
};

This may not fix the error you have, but it might since the assignment
was of an invalid object.

ak capri

unread,
Dec 21, 2011, 5:10:09 AM12/21/11
to bite-discuss
Hi Jason

Sorry to say but after using your solution I am getting error message
'There was a problem logging in'.

Kindly help me to resolve it.

~Thanks

On Dec 20, 11:45 am, Jason Stredwick <jason.stredw...@gmail.com>

Jason Stredwick

unread,
Dec 21, 2011, 1:16:18 PM12/21/11
to bite-discuss
Well, at least that means my solution worked. When you get that
message that means the bite extension is working. You have to login.
When you bring up the popup window, is the error message a link? If
so, have you tried clicking on it? (It is not very intuitive at this
point). When you click on it what server does it try to take you to?

ak capri

unread,
Dec 23, 2011, 5:13:08 AM12/23/11
to bite-discuss
Hi Jason

When I click on the link then I got the msg that cannot found address
localhost-8080.

~Thanks

ak capri

unread,
Dec 23, 2011, 5:14:04 AM12/23/11
to bite-discuss
Complete Error Details:

This webpage is not foundNo webpage was found for the web address:
chrome-extension://gglldmiaglnpildfpkjniaekmjikfgja/
localhost-8080Error 6 (net::ERR_FILE_NOT_FOUND): The file or directory
could not be found.
~Thanks

Jason Stredwick

unread,
Dec 23, 2011, 11:53:26 AM12/23/11
to bite-discuss
For the urls in the ServerChannelOptions, try 'https://localhost:
8080'. If that doesn't work, can paste your ServerChannelOptions in
your next post?

Jason

ak capri

unread,
Dec 26, 2011, 5:21:19 AM12/26/11
to bite-discuss
Hi Jason

Sorry again but no success..Still I am getting the same error.

I tried two options:

Option 1:
bite.options.constants.ServerChannelOption = {
DEV: 'https://localhost:8080',
BETA: 'https://localhost:8080',
EXTERNAL: 'https://localhost:8080',
RELEASE: 'https://localhost:8080'
};

Option 2:

bite.options.constants.ServerChannelOption = {
DEV: 'https://localhost:8080',
BETA: 'https://localhost:8080',
EXTERNAL: 'https://localhost:8080',
RELEASE: 'localhost:8080'
};

Please let me know the resolution of this issue.

~Thanks'


On Dec 23, 11:53 am, Jason Stredwick <jason.stredw...@gmail.com>

Jason Stredwick

unread,
Dec 27, 2011, 12:30:59 PM12/27/11
to bite-discuss
After talking with AlexisT, we discovered that dev_appengine does not
play well with https. We are looking into how use https with the dev
server, but no solution yet; in a general sense.

Short-term fix found by Alexis:

In the app.yaml, if you remove all the "secure: always" lines and
change the server name in http://localhost:8080 then it should
hopefully let you log in.

After making the changes, can you go to http:localhost:8080 in the
browser (not with the extension). What do you see? Do you see the
BITE homepage?

I hope this helps.

ak capri

unread,
Dec 28, 2011, 1:43:18 AM12/28/11
to bite-discuss
HI Jason

Sorry again..no success ..same error I am getting.
When I typed http://localhost:8080 in chrome then I got the error
message "Oops! Google Chrome could not connect to localhost:8080".

I made the changes for 'secure:always' at src\server\app\app.yaml.

Then I made changes for ServerChannelOption at src\client\options
\constants.js

Let me give you my folder structure so that you can get the complete
picture:

C:\bite\bite-project>dir/p/w
Volume in drive C has no label.


Directory of C:\bite\bite-project

[.] [..] .DS_Store
[.git] [ace] [build]
build.py build.zip [build_gen]
[closure-library] compiler.jar COPYING
[gdata-python-client] [selenium-atoms-lib]
SoyToJsSrcCompiler.jar
[src]


Thanks




On Dec 27, 10:30 pm, Jason Stredwick <jason.stredw...@gmail.com>
wrote:
> After talking with AlexisT, we discovered that dev_appengine does not
> play well with https.  We are looking into how use https with the dev
> server, but no solution yet; in a general sense.
>
> Short-term fix found by Alexis:
>
> In the app.yaml, if you remove all the "secure: always" lines and
> change the server name inhttp://localhost:8080then it should

Jason Stredwick

unread,
Dec 28, 2011, 2:58:08 AM12/28/11
to bite-discuss
Please delete the following folders and rebuild:

build
build_gen
src/server/atom
src/server/gdata

If that doesn't work, delete them again and delete the following as
well:

ace
closure-library
compiler.jar
gdata-python-client
selenium-atoms-lib
SoyToJsCompiler.jar

If these do not work, please enter the command line you use to run/
upload your server. I also need to know what you see when you type
localhost:8080 into the browser.

On Dec 27, 10:43 pm, ak capri <indiathenat...@gmail.com> wrote:
> HI Jason
>
> Sorry again..no success ..same error I am getting.
> When I typedhttp://localhost:8080in chrome then I got the error
> message "Oops! Google Chrome could not connect to localhost:8080".
>
> I made the changes for 'secure:always' at src\server\app\app.yaml.
>
> Then I made changes for ServerChannelOption at src\client\options
> \constants.js
>
> Let me give you my folder structure so that you can get the complete
> picture:
>
> C:\bite\bite-project>dir/p/w
>  Volume in drive C has no label.
>
>  Directory of C:\bite\bite-project
>
> [.]                      [..]                     .DS_Store
> [.git]                   [ace]                    [build]
> build.py                 build.zip                [build_gen]
> [closure-library]        compiler.jar             COPYING
> [gdata-python-client]    [selenium-atoms-lib]
> SoyToJsSrcCompiler.jar
> [src]
>
> Thanks
>
> On Dec 27, 10:30 pm, Jason Stredwick <jason.stredw...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > After talking with AlexisT, we discovered that dev_appengine does not
> > play well with https.  We are looking into how use https with the dev
> > server, but no solution yet; in a general sense.
>
> > Short-term fix found by Alexis:
>
> > In the app.yaml, if you remove all the "secure: always" lines and
> > change the server name inhttp://localhost:8080thenit should

ak capri

unread,
Dec 28, 2011, 6:52:17 AM12/28/11
to bite-discuss
Hi Jason

No Success.

After deleting the folders mentioned by you not able to rebuild.

When I typed http://localhost:8080 in chrome then I got the error
message "Oops! Google Chrome could not connect to localhost:8080".

To Rebuild I just double click on build.py file.

~Thanks

On Dec 28, 2:58 am, Jason Stredwick <jason.stredw...@gmail.com> wrote:
> Please delete the following folders and rebuild:
>
> build
> build_gen
> src/server/atom
> src/server/gdata
>
> If that doesn't work, delete them again and delete the following as
> well:
>
> ace
> closure-library
> compiler.jar
> gdata-python-client
> selenium-atoms-lib
> SoyToJsCompiler.jar
>
> If these do not work, please enter the command line you use to run/
> upload your server. I also need to know what you see when you type
> localhost:8080 into the browser.
>
> On Dec 27, 10:43 pm, ak capri <indiathenat...@gmail.com> wrote:
>
>
>
>
>
>
>
> > HI Jason
>
> > Sorry again..no success ..same error I am getting.
> > When I typedhttp://localhost:8080inchrome then I got the error

Jason Stredwick

unread,
Dec 28, 2011, 12:29:30 PM12/28/11
to bite-discuss
Sorry, you can not build BITE by double clicking build.py. You must
download Python 2.7 and run the script from the command line. I
believe there is instructions in the building wiki page.

On Windows I start cmd (the command prompt), go to the bite-project
folder, and run the following command

C:\Python27\python.exe build.py

On Dec 28, 3:52 am, ak capri <indiathenat...@gmail.com> wrote:
> Hi Jason
>
> No Success.
>
> After deleting the folders mentioned by you not able to rebuild.
>
> When I typedhttp://localhost:8080in chrome then I got the error
> message "Oops! Google Chrome could not connect to localhost:8080".
>
> To Rebuild I just double click on build.py file.
>
> ~Thanks
>
> On Dec 28, 2:58 am, Jason Stredwick <jason.stredw...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Please delete the following folders and rebuild:
>
> > build
> > build_gen
> > src/server/atom
> > src/server/gdata
>
> > If that doesn't work, delete them again and delete the following as
> > well:
>
> > ace
> > closure-library
> > compiler.jar
> > gdata-python-client
> > selenium-atoms-lib
> > SoyToJsCompiler.jar
>
> > If these do not work, please enter the command line you use to run/
> > upload your server. I also need to know what you see when you type
> > localhost:8080 into the browser.
>
> > On Dec 27, 10:43 pm, ak capri <indiathenat...@gmail.com> wrote:
>
> > > HI Jason
>
> > > Sorry again..no success ..same error I am getting.
> > > When I typedhttp://localhost:8080inchromethen I got the error

ak capri

unread,
Dec 29, 2011, 4:43:12 AM12/29/11
to bite-discuss
Hi Jason

I have already installed Python27. See if you have Python27 on your
machine then if you double click on build.py then it will
automatically launch the command prompt with your syntax.
Anyways I tried with Command Prompt but still I am getting the same
issue.

~Thanks

On Dec 28, 12:29 pm, Jason Stredwick <jason.stredw...@gmail.com>
wrote:
> Sorry, you can not build BITE by double clicking build.py.  You must
> download Python 2.7 and run the script from the command line.  I
> believe there is instructions in the building wiki page.
>
> On Windows I start cmd (the command prompt), go to the bite-project
> folder, and run the following command
>
> C:\Python27\python.exe build.py
>
> On Dec 28, 3:52 am, ak capri <indiathenat...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi Jason
>
> > No Success.
>
> > After deleting the folders mentioned by you not able to rebuild.
>
> > When I typedhttp://localhost:8080inchrome then I got the error
> > message "Oops! Google Chrome could not connect to localhost:8080".
>
> > To Rebuild I just double click on build.py file.
>
> > ~Thanks
>
> > On Dec 28, 2:58 am, Jason Stredwick <jason.stredw...@gmail.com> wrote:
>
> > > Please delete the following folders and rebuild:
>
> > > build
> > > build_gen
> > > src/server/atom
> > > src/server/gdata
>
> > > If that doesn't work, delete them again and delete the following as
> > > well:
>
> > > ace
> > > closure-library
> > > compiler.jar
> > > gdata-python-client
> > > selenium-atoms-lib
> > > SoyToJsCompiler.jar
>
> > > If these do not work, please enter the command line you use to run/
> > > upload your server. I also need to know what you see when you type
> > > localhost:8080 into the browser.
>
> > > On Dec 27, 10:43 pm, ak capri <indiathenat...@gmail.com> wrote:
>
> > > > HI Jason
>
> > > > Sorry again..no success ..same error I am getting.
> > > > When I typedhttp://localhost:8080inchromethenI got the error

Jason Stredwick

unread,
Dec 29, 2011, 11:11:02 AM12/29/11
to bite-discuss
The only other thing I can think of is that the server is not
running. Two posts ago, you mentioned that when you type localhost:
8080 into the browser it couldn't find the page. This means the
server is not running. Can you give me details on what you do to run
your server?


On Dec 29, 1:43 am, ak capri <indiathenat...@gmail.com> wrote:
> Hi Jason
>
> I have already installed  Python27. See if you have Python27 on  your
> machine  then if you double click on build.py then  it will
> automatically launch the command prompt with your syntax.
> Anyways I tried with  Command Prompt but still I am getting the same
> issue.
>
> ~Thanks
>
> On Dec 28, 12:29 pm, Jason Stredwick <jason.stredw...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Sorry, you can not build BITE by double clicking build.py.  You must
> > download Python 2.7 and run the script from the command line.  I
> > believe there is instructions in the building wiki page.
>
> > On Windows I start cmd (the command prompt), go to the bite-project
> > folder, and run the following command
>
> > C:\Python27\python.exe build.py
>
> > On Dec 28, 3:52 am, ak capri <indiathenat...@gmail.com> wrote:
>
> > > Hi Jason
>
> > > No Success.
>
> > > After deleting the folders mentioned by you not able to rebuild.
>
> > > When I typedhttp://localhost:8080inchromethen I got the error
> > > message "Oops! Google Chrome could not connect to localhost:8080".
>
> > > To Rebuild I just double click on build.py file.
>
> > > ~Thanks
>
> > > On Dec 28, 2:58 am, Jason Stredwick <jason.stredw...@gmail.com> wrote:
>
> > > > Please delete the following folders and rebuild:
>
> > > > build
> > > > build_gen
> > > > src/server/atom
> > > > src/server/gdata
>
> > > > If that doesn't work, delete them again and delete the following as
> > > > well:
>
> > > > ace
> > > > closure-library
> > > > compiler.jar
> > > > gdata-python-client
> > > > selenium-atoms-lib
> > > > SoyToJsCompiler.jar
>
> > > > If these do not work, please enter the command line you use to run/
> > > > upload your server. I also need to know what you see when you type
> > > > localhost:8080 into the browser.
>
> > > > On Dec 27, 10:43 pm, ak capri <indiathenat...@gmail.com> wrote:
>
> > > > > HI Jason
>
> > > > > Sorry again..no success ..same error I am getting.
> > > > > When I typedhttp://localhost:8080inchromethenIgot the error
> ...
>
> read more »

ak capri

unread,
Dec 30, 2011, 4:39:46 AM12/30/11
to bite-discuss
Hi Jason

I have Apache 2.2 which is running on 8080 port.I reconfigured Apache
and retested the issue but still no solution.

I am starting the server through 'Services'.

Now If I am typing the URL 'http:\\localhost:8080' then I am getting
one message as 'It works'.So it means My server is running.

In fact if I click on the error link then it is redirected to my
server.

Hope this info will help you to understand my issue.

~Thanks


On Dec 29, 11:11 am, Jason Stredwick <jason.stredw...@gmail.com>
wrote:
> > > > When I typedhttp://localhost:8080inchromethenI got the error
> > > > message "Oops! Google Chrome could not connect to localhost:8080".
>
> > > > To Rebuild I just double click on build.py file.
>
> > > > ~Thanks
>
> > > > On Dec 28, 2:58 am, Jason Stredwick <jason.stredw...@gmail.com> wrote:
>
> > > > > Please delete the following folders and rebuild:
>
> > > > > build
> > > > > build_gen
> > > > > src/server/atom
> > > > > src/server/gdata
>
> > > > > If that doesn't work, delete them again and delete the following as
> > > > > well:
>
> > > > > ace
> > > > > closure-library
> > > > > compiler.jar
> > > > > gdata-python-client
> > > > > selenium-atoms-lib
> > > > > SoyToJsCompiler.jar
>
> > > > > If these do not work, please enter the command line you use to run/
> > > > > upload your server. I also need to know what you see when you type
> > > > > localhost:8080 into the browser.
>
> > > > > On Dec 27, 10:43 pm, ak capri <indiathenat...@gmail.com> wrote:
>
> > > > > > HI Jason
>
> > > > > > Sorry again..no success ..same error I am getting.
> > > > > > When I typedhttp://localhost:8080inchromethenIgotthe error
> ...
>
> read more »

Jason Stredwick

unread,
Dec 30, 2011, 12:33:14 PM12/30/11
to bite-discuss
So if you start an Apache server for localhost:8080 then when you
click the error/login link it opens a new tab and takes you to your
Apache server, correct? That is the correct behavior for the bite
extension.

The next step is to get the server running, which requires AppEngine
if you are using the server code provided with the extension. More
specifically, dev_appengine if you are trying to create a server for
localhost:8080. Otherwise, you can just upload the server code to
your own AppEngine instance.

One caveat is that the newest changes have migrated the Python code to
use webapp2 which can be run outside of AppEngine, however I believe
the model code assume the use of the AppEngine environment.
> > > > > When I typedhttp://localhost:8080inchromethenIgot the error
> ...
>
> read more »

ak capri

unread,
Jan 3, 2012, 10:24:44 AM1/3/12
to bite-discuss
Hi Jason
First of all Wish you and your team a very Happy and Prosperous New
Year.

Second thing Can you please tell me which file I need to modify
because I deployed the build in Apache and restarted the servies but
still the same error?


~Thanks

On Dec 30 2011, 12:33 pm, Jason Stredwick <jason.stredw...@gmail.com>
> > > > > > When I typedhttp://localhost:8080inchromethenIgotthe error
> ...
>
> read more »

Jason Stredwick

unread,
Jan 3, 2012, 12:38:16 PM1/3/12
to bite-discuss
Thanks and a Happy New Year to you too!

Unfortunately, I do not know how to use BITE server with Apache, and I
don't think it is possible. The server code is designed specifically
to run with AppEngine. My recommendation if possible is to:

1. Go to appengine.google.com and create a new application
2. Download the appengine SDK
3. Run appcfg.py -A {name of application} -V {name of version} update
{server location}
4. Change constants.js to use the new server https://{application
name}.appspot.com

I you can't create an AppEngine application then

1. Download the appengine SDK
2. Run dev_appengine {server location} (Note it has been a while
since I ran the dev_appengine and there are some issues we are trying
to work out related to it, but it will be a good first step to get the
server running)

For either process, you should be able to go to the server main page
and see the BITE logo. For the first one it should be

https://{application name}.appspot.com
and
http://localhost:8080 for the second approach.

I hope that helps.

Jason
> ...
>
> read more »

ak capri

unread,
Jan 6, 2012, 8:29:16 AM1/6/12
to bite-discuss
Hi Jason

Thanks a lot. Now I am able to configure BITE properly. I have
recorded my first script.
Thanks again for your help.

One more question from where I can get more information about the
functions. For ex: While recording I can see
'redirectTo',click,getElem.. so I just want to know from where I can
get the function and dll informations.

~Thanks


On Jan 3, 12:38 pm, Jason Stredwick <jason.stredw...@gmail.com> wrote:
> Thanks and a Happy New Year to you too!
>
> Unfortunately, I do not know how to use BITE server with Apache, and I
> don't think it is possible.  The server code is designed specifically
> to run with AppEngine.  My recommendation if possible is to:
>
> 1. Go to appengine.google.com and create a new application
> 2. Download the appengine SDK
> 3. Run appcfg.py -A {name of application} -V {name of version} update
> {server location}
> 4. Change constants.js to use the new server https://{application
> name}.appspot.com
>
> I you can't create an AppEngine application then
>
> 1. Download the appengine SDK
> 2. Run dev_appengine {server location}  (Note it has been a while
> since I ran the dev_appengine and there are some issues we are trying
> to work out related to it, but it will be a good first step to get the
> server running)
>
> For either process, you should be able to go to the server main page
> and see the BITE logo.  For the first one it should be
>
> https://{application name}.appspot.com
> andhttp://localhost:8080for the second approach.
> ...
>
> read more »

Jason Stredwick

unread,
Jan 6, 2012, 12:38:39 PM1/6/12
to bite-discuss
I am glad you got it working!

As for your question about RPF. I don't think I understand what you
are looking for. Those functions such as click are all JavaScript and
you can find their implementation under tools/rpf/extension/src for
example:

http://code.google.com/p/bite-project/source/browse/tools/rpf/extension/src/bothelper.js

This code basically wraps the downloaded dependency

deps/selenium-atoms-lib/bot.js

I hope that helps.

On Jan 6, 5:29 am, ak capri <indiathenat...@gmail.com> wrote:
> Hi Jason
>
> > andhttp://localhost:8080forthe second approach.
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages