Skip to content

invalid byte sequence in US-ASCII #12

@wstaples

Description

@wstaples

Hello,

I'm attempting to automate a microsoft access database using cucumber.
I can create a new instance of the application using

app = Source_Code_Database.new

I can get the process id with

app.pid

however when I try to do anything else like:
app.main_window.window_class
or
app.main_window.children.count

I get the error "invalid byte sequence in US-ASCII (ArgumentError)"

Here is the class I'm using

class Source_Code_Database < Autogui::Application
    def initialize()
        @access_dir = 'C:/Program Files (x86)/Microsoft Office/Office14/msaccess.exe'
        @database_dir = File.absolute_path('../code/campaign_codes.accdb')
        @launch_string = "\"#{@access_dir}\" \"#{@database_dir}\"".gsub("/", "\\")
        super :name => @launch_string, :title => 'Microsoft Access - campaign_codes : Database (Access 2007 - 2010)', :logger_level => Autogui::Logging::DEBUG
    end 
end

Everything is english
I am on Windows 7 64bit
Ruby 1.9.3p448 (2013-06-27) [i386-mingw32]
win32-autogui (0.5.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions