Menu

whats wrong?

Help
2010-08-06
2013-04-24
  • Nobody/Anonymous

    2010.08.06 22:19:19 INFO Starting bot with configuration config.xml
    2010.08.06 22:19:20 ERROR An error occured during starting the bot:Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: XP
    System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_21'
    Driver info: driver.version: firefox
    org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: XP
    System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_21'
    Driver info: driver.version: firefox
    at org.openqa.selenium.firefox.internal.Executable.<init>(Executable.java:48)
    at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:56)
    at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:52)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:113)
    at net.sf.stbot.Browser.init(Browser.java:34)
    at net.sf.stbot.SmartTravianBot.main(SmartTravianBot.java:56)

    firefox is installed!!

     
  • Frank

    Frank - 2010-08-14

    hi nobody,
    the bot can not find the right path possibly base on
    -you didn't chose the standard installation path for firefox
    -your firefox is installed on a different partition as your win xp /vista / 7
    - or a similar case

    i'll try to explain it but for the reason that i don't have a windows machine and i don't know the correct specification for the windows labels my description could deffer.

    how to fix it:
    first way: fixed within a minute
    1. right click on workplace -> properties
    2. click on environment variable
    3. search for system variables
    4. now edit "Path" and add your firefox path
    for example
    your current "Path" could looks like this:

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1
    \COMMON~1\ULEADS~1\MPEG;C:\Program Files\QuickTime\QTSystem\;C:\Program
    Files\Common Files\DivX Shared\

    now add your firefox path, for example: 
    D:\ProgramFiles\Mozilla Firefox\

    your result:
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1
    \COMMON~1\ULEADS~1\MPEG;C:\Program Files\QuickTime\QTSystem\;C:\Program
    Files\Common Files\DivX Shared\;D:\ProgramFiles\Mozilla Firefox\

    2th way, a bit harder but if you want to know i'll post it.

    Best Regards
    Frank

     
  • Frank

    Frank - 2010-08-14

    and don't forget the ;
    ;-)

     
  • Nobody/Anonymous

    If your afraid of touching to your computer settings.Take this guide as an example
    http://www.mobilefish.com/developer/android/android.html
    except  you have to insert  either
    ;c:\ProgramFiles\Mozilla Firefox2
    or
    ;c:\ProgramFiles\Mozilla Firefox2

    If you want to confirm where your firefox resides. Right click  on your firefox dektop icon and click on properties.
    Click on find target. Windows Explorer will open and you can copy the path of firefox from explorer.

     
  • Nobody/Anonymous

    I forgot . some of you might also find the target as

    C:\Program Files\Mozilla Firefox    only.

    Aks

     

Log in to post a comment.