{"action":"reopened","issue":{"url":"https://api.github.com/repos/BBC-News/wraith/issues/450","repository_url":"https://api.github.com/repos/BBC-News/wraith","labels_url":"https://api.github.com/repos/BBC-News/wraith/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/BBC-News/wraith/issues/450/comments","events_url":"https://api.github.com/repos/BBC-News/wraith/issues/450/events","html_url":"https://github.com/BBC-News/wraith/issues/450","id":166787343,"number":450,"title":"Wraith/Casper not coping with # in selector","user":{"login":"rayferns","id":6547963,"avatar_url":"https://avatars.githubusercontent.com/u/6547963?v=3","gravatar_id":"","url":"https://api.github.com/users/rayferns","html_url":"https://github.com/rayferns","followers_url":"https://api.github.com/users/rayferns/followers","following_url":"https://api.github.com/users/rayferns/following{/other_user}","gists_url":"https://api.github.com/users/rayferns/gists{/gist_id}","starred_url":"https://api.github.com/users/rayferns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayferns/subscriptions","organizations_url":"https://api.github.com/users/rayferns/orgs","repos_url":"https://api.github.com/users/rayferns/repos","events_url":"https://api.github.com/users/rayferns/events{/privacy}","received_events_url":"https://api.github.com/users/rayferns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-07-21T10:29:04Z","updated_at":"2016-07-28T13:35:45Z","closed_at":null,"body":"I am trying to create a Test suite for Wraith CasperJS CSS Selectors, by adding paths and selectors of a given page. Below is the config file: CSS_Selector_pages.yaml and located within my Project Folder. I've ran the config file in MSDOS and in Powershell. I see this same error everytime. Not sure how to resolve this:\r\n\r\n`+': no implicit conversion of Hash into String (TypeError) from base_urls on wraith helpers capture_options.rb`\r\n\r\nAny advise would be appreciated.\r\n\r\n#### Issue checklist:\r\n\r\n- [Yes ] I have validated my config file against [YAML Validator](http://codebeautify.org/yaml-validator) to make sure it is valid YAML.\r\n\r\n- [Yes ] I have run the command in verbose mode (by adding `verbose: true` to my config) and pasted the output below:\r\n\r\n```\r\nPS C:\\VisualRegression> wraith capture .\\configs\\CSS_Selector_pages.yaml\r\nDEBUG: #################################################\r\nDEBUG:   Command run:        capture .\\configs\\CSS_Selector_pages.yaml\r\nDEBUG:   Wraith version:     3.2.0\r\nDEBUG:   Ruby version:       ruby 2.3.0p0 (2015-12-25 revision 53290) [x64-mingw32]\r\n\r\nDEBUG:   ImageMagick:        Version: ImageMagick 7.0.2-1 Q16 x64 2016-06-23 http://www.imagemagick.org\r\n\r\nDEBUG:   PhantomJS version:  1.9.6\r\n\r\nDEBUG:   CasperJS version:   1.1.1\r\n\r\nDEBUG: #################################################\r\nDEBUG:\r\nConfig validated. No serious issues found.\r\nCreating Folders\r\nSAVING IMAGES\r\nC:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/helpers/capture_options.rb:42:in `+': no implicit conversion of Hash into String (TypeError) from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/helpers/capture_options.rb:42:in `base_urls from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/helpers/capture_options.rb:34:in `base_url'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/save_images.rb:54:in `define_individual_job'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/save_images.rb:42:in `block (2 levels) in define_jobs'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/save_images.rb:41:in `each'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/save_images.rb:41:in `block in define_jobs'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/save_images.rb:35:in `each'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/save_images.rb:35:in `define_jobs'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/save_images.rb:29:in `save_images'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/cli.rb:89:in `block in save_images'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/cli.rb:28:in `within_acceptable_limits'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/cli.rb:86:in `save_images'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/cli.rb:136:in `block in capture'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/cli.rb:28:in `within_acceptable_limits'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/lib/wraith/cli.rb:131:in `capture'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\r\nfrom C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.0/bin/wraith:5:in `<top (required)>'\r\nfrom C:/Ruby23-x64/bin/wraith:23:in `load'\r\nfrom C:/Ruby23-x64/bin/wraith:23:in `<main>'\r\n```\r\n\r\n- [ Yes] I have pasted the contents of my config file below:\r\n\r\n```\r\n#debug mode\r\nverbose: true\r\n#Headless browser option\r\nbrowser:\r\n  casperjs: \"casperjs\"\r\n#  phantomjs: \"phantomjs\"\r\n\r\nbefore_capture: 'javascript/wait--casper.js'\r\n\r\n# Type the name of the directory that shots will be stored in\r\ndirectory: 'Retailers_CSS_Selector_shots'\r\n\r\n#As per https://github.com/BBC-News/wraith/issues/308 - to read in https urls\r\nphantomjs_options: --ssl-protocol=tlsv1 --ignore-ssl-errors=yes\r\n\r\nbefore_capture: 'javascript/wait--casper.js'\r\n \r\n# Add only 2 domains, key will act as a label\r\ndomains:\r\n  Live: \"http://www.volkswagen.co.uk\"\r\n  Origin_VW03: \"http://origin-vw03.vwcloud.co.uk\"\r\n \r\n#Type screen widths below, here are a couple of examples\r\nscreen_widths:\r\n    - 600x800\r\n    - 320x533\r\n    - 750x1334\r\n    \r\nresize_or_reload: 'resize'  \r\n#resize_or_reload: 'reload'\r\n\r\n#Type page URL paths below, here are a couple of examples\r\npaths: \r\n   home:\r\n    Retailer: /find-a-retailer\r\n    selector: '.tab.retailer>a'\r\n \r\n#Amount of fuzz ImageMagick will use\r\nfuzz: '50%'\r\n \r\n#Set the number of days to keep the site spider file\r\nspider_days:\r\n  - 10\r\n \r\n#Choose how results are displayed, by default alphanumeric. Different screen widths are always grouped.\r\n#alphanumeric - all paths (with, and without, a difference) are shown, sorted by path\r\n#diffs_first - all paths (with, and without, a difference) are shown, sorted by difference size (largest first)\r\n#diffs_only - only paths with a difference are shown, sorted by difference size (largest first)\r\nmode: diffs_first\r\n \r\nthreshold: 5\r\n\r\n# Examples: 'basic_template' (default), 'slideshow_template'\r\ngallery:\r\n  template: 'basic_template' \r\n  thumb_width:  200\r\n  thumb_height: 200\r\n```"}}
{"actor":{"display_login":"ChrisBAshton"}}