Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 05 18:57

    cherifGsoul on travis-xenial-migration

    (compare)

  • Dec 05 18:57

    cherifGsoul on master

    Migrate to xenial on travis Merge pull request #179 from bi… (compare)

  • Dec 05 18:57
    cherifGsoul closed #179
  • Dec 05 18:54
    cherifGsoul opened #179
  • Dec 05 18:53

    cherifGsoul on travis-xenial-migration

    Migrate to xenial on travis (compare)

  • Dec 05 18:35
    kdillon review_requested #178
  • Dec 05 18:35
    kdillon review_requested #178
  • Dec 05 18:35
    kdillon review_requested #178
  • Dec 05 18:35
    kdillon opened #178
  • Nov 27 12:58
    greenkeeper[bot] commented #177
  • Nov 27 12:57

    greenkeeper[bot] on steal-tools-2.2.5

    chore(package): update steal-to… (compare)

  • Nov 26 18:07

    kdillon on adding_buttons_field_to_mouse_events

    tiny whitespace correction (compare)

  • Nov 26 18:03

    kdillon on adding_buttons_field_to_mouse_events

    Correction to the event data th… (compare)

  • Nov 26 03:19

    kdillon on adding_buttons_field_to_mouse_events

    More and better tests, also cov… (compare)

  • Nov 25 13:41
    greenkeeper[bot] commented #177
  • Nov 25 13:40

    greenkeeper[bot] on steal-tools-2.2.4

    chore(package): update steal-to… (compare)

  • Nov 23 02:37

    kdillon on adding_buttons_field_to_mouse_events

    First attempt at getting the bu… (compare)

  • Nov 13 12:51

    greenkeeper[bot] on steal-tools-pin-2.2.2

    fix: pin steal-tools to 2.2.2 (compare)

  • Nov 13 12:51
    greenkeeper[bot] labeled #177
  • Nov 13 12:51
    greenkeeper[bot] opened #177
Kevin Dillon
@kdillon
@beshoo To answer your second question: we built it to mimic human interactions. If you find cases where it isn't accurate, please file a bug (preferably with repro steps) to the github project ( https://github.com/bitovi/syn/issues ) and someone will take a look at it for you.
@beshoo OR... if its an easy fix, you can always fix it yourself and contribute back ( it is open-source, after all! ) :)
beshoo
@beshoo
I can not find the js file which dont request node
Kindly may you give me the link
To the lib file.
Kevin Dillon
@kdillon
That I'm actually not sure. Most users consume Syn via FuncUnit
I can tell you how to get funcunit.js , but I'm not sure where to get the official syn.js without just pulling it from funcunit's dependencies
@beshoo Is there a particular reason why you've chosen not to use FuncUnit instead?
Chasen Le Hara
@chasenlehara
@beshoo Here’s all the dist files for syn: https://unpkg.com/syn/dist/
You probably want the version in the global folder
beshoo
@beshoo
i include the glbal one in my html , an error at the first line (function(exports, global, doEval) {
Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value)(...) is not a function
and require('syn/mouse.support');
require('syn/browsers');
require('syn/key.support');
require('syn/drag');
window.syn = syn;
is not suported in browser
th is is node js !
i don't want to open issues for this !
Kevin Dillon
@kdillon
Hi @beshoo , you are attempting to use unpackaged javascript here. You should be including only one file: syn.js or funcunit.js depending on your preference.
@beshoo as Chasen linked, the file that you want to use is here: https://unpkg.com/syn@0.14.1/dist/global/
(for Syn)
beshoo
@beshoo
well first . https://unpkg.com/syn@0.14.1/dist/ there is no funcunit.js in all 3 folders
now , it seems i don't understand you very well. i am using chrome and normal HTML , i include syn.js in my html and open the html page in chorme
download it and include it . well it return an error which is very normal!
Please is there a step by step to install the lib and use it in normal HTML as vanila javascript ?
and as i side , i have this error in my chrome console Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value)(...) is not a function
beshoo
@beshoo
@kdillon , please do you have a live example , then i can see how it works !
Live demo !
Chasen Le Hara
@chasenlehara
@beshoo Syn’s docs are here: https://github.com/bitovi/syn#syn
Like Kevin said, Syn’s most common usage is within FuncUnit. Its getting started guide is here: https://funcunit.com/guides/Guides.guides.start.html
You can download FuncUnit from its homepage or https://unpkg.com/funcunit/dist/
Kevin Dillon
@kdillon
@beshoo Also https://funcunit.com/ has a running demo app
beshoo
@beshoo
Nice , i manage it to run , well .. one of my friends show me a place that this lib is not working , he is a security checker , he tried to attach the libe to Instagram photo page https://www.instagram.com/p/BtMxcd7A4Na/ , and try to type in the comment section
F('textarea').click().type("Hello World"); it type without any problem , but the POST button does not enable , while if you type anything by your keyboard it will enable... so the library does not send keyboard as when you type via the keyboard it self , or we are missing something ?
beshoo
@beshoo
@kdillon any advice ?
Kevin Dillon
@kdillon
@beshoo We try to send events as close to human-generated events as possible. Without seeing your product I wouldn't be able to tell you why your post button does not unlock. That is product-specific behavior, and I don't know what it is looking-for in the event to trigger the unlock
beshoo
@beshoo
it is not a product by mean, we are learning how to Instagram stop this behavior , well we just inject funcunit + QUnit + jquery , to the body of Instagram photo page (example : https://www.instagram.com/p/Bv2SJ0FFMiK/ ) while i am login to my Instagram account, by chrome extension plugin, and i type in the comment box $('textarea').type('helloworld');
Well , it type in the textarea, but the POST button still inactive, but if you type via your real keyboard , that will trigger something , and post button are enabled. that is what we are studying, how we can send human events to inout box
beshoo
@beshoo
i tried sendKeys as well. and its type ! but not tigger the POST button !
beshoo
@beshoo
@kdillon any idea?
Kevin Dillon
@kdillon
@beshoo I don't know. This is product specific behavior (instagram in this case)
There may also be protections built into instagram to prevent automation so that it can't be abused.
But I'm not sure. TBH, I don't actually use instagram, so I know very little about it
Kevin Dillon
@kdillon
@beshoo Do you work for instagram?
beshoo
@beshoo
@kdillon yes we are security third party and we want to test all available lib, in order to find any bugs in the system
Kevin Dillon
@kdillon
@beshoo I suggest then that you contact developers at instagram and ask them what criteria they are looking-for in order to activate that POST button
beshoo
@beshoo
@kdillon Well , we can not , our job to test as third party without contacting SDK developers
the only thing we know , if we type in the input , that trigger the POST
Kevin Dillon
@kdillon
@beshoo I still need to know what we are expected to send but are not sending in order to activate the POST button
@beshoo That is product-specific behavior to instagram, and I don't work for them, so I don't have insights into what they are looking-for.
beshoo
@beshoo
@kdillon i know that you are not working for instagram, i am thanks full for your help, well the i believe we are expected key down other than space bar, so i believe sendkey to key code + key down stat, but what i note that
beshoo
@beshoo
They are looking for kerpress
Keypress
beshoo
@beshoo

bitovi/funcunit#242

am not sure if this is a bug ,