How to use Selenium with Sikuli (Automate Flash Objects)

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 83

  • @mariabajwa8632
    @mariabajwa8632 6 років тому +2

    Finally i did felx application automation task...thank you...you are just blessings for SQA's.

  • @omkarpotdar2763
    @omkarpotdar2763 2 роки тому +1

    Thanks a lot Naveen. Another interesting and useful topic you have covered. Keep it up Naveen😊

  • @yashwantbeeram8543
    @yashwantbeeram8543 6 років тому

    Hi Naveen. I am really thankful for all ur videos. I am watching all and practicing regularly. Its really happy to see if videos. You always give brother like suggestions everytime in between.Actually prior to this video may be Jenkin or Testng small introduction video need to be there.it will be really helpful for new learners otherwise may be it need to be after testng and maven.

  • @DineshKumar-du2dm
    @DineshKumar-du2dm 5 років тому

    Great learning Naveen...Very much needed for my flash application project. Thanks a lot :)

    • @santoshs105
      @santoshs105 4 роки тому

      Getting below error on running script. Any idea how to solve it?
      [error] RunTimeAPI: * terminating: loadlib: libVisionProxy.dylib not available in /Users//Library/Application Support/Sikulix/SikulixLibs_201510081336

  • @NPRBEST
    @NPRBEST 5 років тому

    Learned an important concept. Thank you very much for simple explanation.

    • @sapnajoshi725
      @sapnajoshi725 5 років тому

      is sikulixapi is working for you? Because i am getting this error java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader .Please help me out .

  • @sreenivasu493
    @sreenivasu493 5 років тому +1

    Good explanation. if i want to take a screen shot of particular image in windows. How to select and how to take screenshot in windows. please explain

  • @naveenkumarprasad932
    @naveenkumarprasad932 7 років тому +1

    Hi Naveen, Everything is fine in lecture but I am bit confuse for two line of code. You had written these line of coded
    Screen s = new Screen();
    Pattern pauseImg = new Pattern("YT_pause.img");
    s.click();
    How those s.click method know that we need to click on "pauseImg" even though there is no connection between Screen object s and Pattern object pauseImg?
    should it not be like this:
    s.click(pauseImg);
    Actually both worked for me. your code will fail in case someone writ like this.
    Screen s = new Screen();
    Pattern pauseImg = new Pattern("YT_play.png");
    Pattern PlayImg = new Pattern(")
    s.click();
    Now click will click on PlayImg object, not on pauseImg.
    Please correct me if I am wrong

  • @bihari1422
    @bihari1422 2 роки тому

    Hi Naveen, by going the videos playlist I dont know about Maven Project

  • @mariabajwa8632
    @mariabajwa8632 6 років тому +1

    ohh thank you so much for this, i am searching for this...

  • @indrajitbhattacharjee8204
    @indrajitbhattacharjee8204 7 років тому

    Nice explanation Naveen.One query how to slide the video based on a particular time frame say i want to slide the video at a position 10:35 ?

  • @shaliniverma9233
    @shaliniverma9233 2 роки тому

    Can we do automation testing for desktop games or any type of games we play on our PC using sikuli?

  • @mathewgeorge1247
    @mathewgeorge1247 4 роки тому

    Hi Naveen, is usage of Sikuli needed for UA-cam now? I was able to click all the control buttons and Cog (Setting) button using Xpath itself.
    //button[@class='ytp-play-button ytp-button ytp-play-button-playlist'] for Play button
    //button[@aria-label='Settings' and @title='Settings'] for Settings button
    //div[@class='ytp-menuitem-label' and contains(text(),'Quality')] for changing video quality
    Did UA-cam stop using flash or something?

  • @kshipra4504
    @kshipra4504 3 роки тому +1

    Hi! If we run the same script on different system with different pixel resolution(which might see the same image as of different resolution), will this even work there?

  • @fathimasyed4232
    @fathimasyed4232 4 роки тому

    interesting .. New concept for me :) Thank you ..

    • @santoshs105
      @santoshs105 4 роки тому

      Getting below error on running script. Any idea how to solve it?
      [error] RunTimeAPI: * terminating: loadlib: libVisionProxy.dylib not available in /Users//Library/Application Support/Sikulix/SikulixLibs_201510081336

  • @NamRaj2021
    @NamRaj2021 Рік тому

    sir ! what to write code to pen the desktop applications.? for suppose if we want to open chrome browser by taking screenshot then we can not add url like driver.get(" ........") .

  • @PoojaThakur-bp2tz
    @PoojaThakur-bp2tz 3 роки тому

    Hi @naveen ,
    I am trying to automate a desktop application using sikuli but I am getting number format exception , have tried to catch the exception using the exception handling but no help , further to add on this I am performing a simple operation when I need to search the icon on screen and click the icon but getting the number format exception
    Please note : I have performed the sikuli integration with selenium web driver

  • @pranaykumar8616
    @pranaykumar8616 6 років тому

    Hi Naveen,
    Can you please upload a video to compare images using sikuli.

  • @real_hello_kitty
    @real_hello_kitty 4 роки тому

    Thanks. Appreciate.🧤😀

  • @omashete3800
    @omashete3800 3 роки тому +1

    how to take screenshot please suggest me

  • @Abhilash_TC
    @Abhilash_TC 6 років тому

    Hi Naveen... Just happened to watch this video, This is the first video that I've watched on Sikuli. Its interesting and simple and the execution is fast when compared with QTP for flex automation. What I understood is Sikuli does the image comparison for the relevant object and perform the subsequent action. I have a doubt since its identify the objects based on the images... What if I am executing the test on a different machine or same machine after changing the screen resolution... Will Sikuli be able to identify the object??

    • @deep80105
      @deep80105 6 років тому

      It will behave unexpectedly.It might throw FindFailed exception. It is better to use with same resolution.

  • @Ashishbains25
    @Ashishbains25 6 років тому +1

    Not able to import screen class(importing org.sikuli.api), its showing "Cannot instantiate the type Screen".

    • @deep80105
      @deep80105 6 років тому

      U need to import import org.sikuli.script.Screen;

  • @ankurkosaria1569
    @ankurkosaria1569 7 років тому +1

    awesome naveen.. it looks so easy

  • @ramitdhamija6655
    @ramitdhamija6655 5 років тому

    Hi, is there any way to use Sikuli with Remote Machines(Selenium Grid) ? I have been using your Sikuli method along with the command: "driver.setFileDetector(new LocalFileDetector());" but it doesn't work and shows error "FindFailed" however it works locally.

  • @ahmadrafiamarkhil4552
    @ahmadrafiamarkhil4552 4 роки тому +1

    how to take screenshot for sikuli?

  • @purvidholakia3570
    @purvidholakia3570 5 років тому +1

    Hi Naveen, First of all thanks. I have learnt java and selenium by watching your all lectures. Thank you so much for uploading very useful videos. Today i exactly follow your steps and captured almost 10-12 images but getting one error and not getting any solution on google. The error is
    FindFailed: can not find P(C2.PNG) S: 0.7 in S(0)[0,0 1366x768]
    Line 2189, in file Region.java
    at org.sikuli.script.Region.handleFindFailedShowDialog(Region.java:2189)
    at org.sikuli.script.Region.handleFindFailed(Region.java:2134)
    at org.sikuli.script.Region.wait(Region.java:2546)
    I am trying to capture a first name from the image having 12 names. It has clicked 2-3 times but now getting an error.
    Any help will be appreciated.

    • @TwinkleGandhi
      @TwinkleGandhi 4 роки тому

      I'm facing same error. did you get any help?

    • @WisdomWorld2310
      @WisdomWorld2310 4 роки тому

      I am also getting same error..Do you know any solution

  • @lavanya.ds0657
    @lavanya.ds0657 3 роки тому

    Hi sir, I'm trying to run sikuli code along with other java code(, only 2 steps involve sikuli) using run.bat file , java language, it's failing abruptly without throwing any error while executing the sikuli method, please help me to resolve this issue

  • @naseemakhtar8243
    @naseemakhtar8243 5 років тому

    Hi Naveen, I am trying to upload file using selenium in Webdriver. Getting ExceptionInitializerError. Please help me how to resolve this issue. Have also added the required dependency in pom.xml filr for sikuli.

  • @celebrationsadventures4105
    @celebrationsadventures4105 5 років тому

    when i launch desired link in driver.get method "ads" get started every alternate iterations. how to handle SkipADS flash object

  • @anithadevasenavijayavelan5670
    @anithadevasenavijayavelan5670 7 років тому

    Thank you Naveen, I tried but I got image not found and text search switch off in console. Even I added sikuli-java.jar file . And also I added imagepath.setbundlepath(“path of the image file”)
    But still I revive the same error. Can u please help me to fix this issue

  • @aishwaryab3592
    @aishwaryab3592 2 роки тому

    getting this error when we run selenium sikuli code in remote VM
    using jenkin..Mouse: not useable (blocked)

  • @nalinaksheepanda1596
    @nalinaksheepanda1596 5 років тому

    Screen class has now become an Interface, also Pattern class changed, I found an alternative approach using JavascriptExecutor from another site and the below is also working.
    WebElement video = driver.findElement(By.tagName("video"));
    JavascriptExecutor js = (JavascriptExecutor)driver;
    // pausing the video
    js.executeScript("arguments[0].pause();", video);
    Thread.sleep(5000L);
    //playing the video
    js.executeScript("arguments[0].play();", video);
    Thread.sleep(5000L);

    • @shreyanshjain2347
      @shreyanshjain2347 4 роки тому +2

      Screen class is available . mvnrepository.com/artifact/com.sikulix/sikulixapi/2.0.4

    • @cinthiyavincent9527
      @cinthiyavincent9527 3 роки тому

      @@shreyanshjain2347 thank you

  • @nagasri3664
    @nagasri3664 3 роки тому

    Naveen after adding both the dependencies I got error in pom.xml. please help me out

  • @rupjitdas8509
    @rupjitdas8509 4 роки тому

    If we move our mouse control from the browser under test or if we minimize it will sikuli still work or will it fail

  • @kieranocallaghan7667
    @kieranocallaghan7667 6 років тому

    Couldnt create the Screen object
    java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader

  • @anuragsingh-oj2xs
    @anuragsingh-oj2xs 5 років тому

    How can we seek the you tube video at a particular time using Sikuli?

  • @mayurkarnik310
    @mayurkarnik310 6 років тому +1

    Hi Naveen
    I want to know whether we can run sikuli script on jenkins or not?

    • @naveenautomationlabs
      @naveenautomationlabs  6 років тому

      Yes you can. Make sure all the images are part of your workspace so that Jenkins can read them.

    • @mayurkarnik310
      @mayurkarnik310 6 років тому

      Yes i will take care of that..is there any configuration related changes we need to do on jenkins?Thanks for your reply.

    • @mayurkarnik310
      @mayurkarnik310 6 років тому

      Naveen..I am not able to run sikuli script through jenkins. It get execute when i rut it from locally, but from jenkins it does nothing.Plz help me

  • @MrRaviBhavsar
    @MrRaviBhavsar 6 років тому

    Hi @naveen , can we automate flex based application ?

  • @mandarjoshiin123
    @mandarjoshiin123 5 років тому

    Hi Naveen, I am getting cannot instantiate type Screen error. What can be the reason?

  • @Rashmi_Chauhan
    @Rashmi_Chauhan 6 років тому

    hey naveen
    how to automate scroll functionality using sikuli.can you help me with this

  • @WMohanty
    @WMohanty 4 роки тому

    How to take screen shots of pause button in windows.

  • @brahmendrajayaraju9529
    @brahmendrajayaraju9529 3 роки тому

    What is the system resolution we have to set

  • @madhurinemade27
    @madhurinemade27 6 років тому

    What if same image present twice on the page will sikuli work for it?

  • @crazylovebutreal9338
    @crazylovebutreal9338 4 роки тому

    it ask for Screen and Pattern object need to override some methods

  • @sabavathamir3611
    @sabavathamir3611 6 років тому

    sir did u upload autoit topic?

  • @santoshs105
    @santoshs105 4 роки тому

    Getting below error on running script. Any idea how to solve it?
    [error] RunTimeAPI: *** terminating: loadlib: libVisionProxy.dylib not available in /Users//Library/Application Support/Sikulix/SikulixLibs_201510081336

  • @sindug707
    @sindug707 Рік тому

    How to generate report and error log for sikuli

  • @jaykatti
    @jaykatti 7 років тому

    Hi Naveen, I tried executing these using Sikuli and I exactly followed the steps for creating a Maven project. However, I keep getting this error message. Can you help pls. ? Tried googling for solutions, but could not resolve the issue.
    [error] RunTimeINIT: *** terminating: libs to export not found on above classpath: /sikulixlibs/windows/libs64

    • @deep80105
      @deep80105 6 років тому +1

      U need to double click on .jar file and accept option 2 for windows. It will download the necessary api.I was facing the same issue and now it is resolved.

  • @puneetgupta4006
    @puneetgupta4006 5 років тому

    i'm getting below error when i'm doing same
    Error: Unable to initialize main class com.excel.utility.UA-cam
    Caused by: java.lang.NoClassDefFoundError: org/sikuli/script/FindFailed

  • @mariabajwa8632
    @mariabajwa8632 6 років тому

    hi naveen,
    how to automate flex application through Selenium Flex API,(sfapi)?
    kindly upload video regarding this when you will be free... thank you

  • @balapramodhsheriyala7847
    @balapramodhsheriyala7847 2 роки тому

    I am unable to run the program any suggestions please

  • @vishalshaha1079
    @vishalshaha1079 5 років тому

    Sir, I am facing trouble with sikuli.
    I am getting an error that says "cannot instantiate the type screen".

    • @RayeedWorld
      @RayeedWorld 5 років тому

      vishal shaha I am having the same problem. Can you give us a solution Naveen, please?

    • @deekshapuri5252
      @deekshapuri5252 4 роки тому

      Naveen could you please help in this?

  • @ArunRajput-ut7gt
    @ArunRajput-ut7gt 6 років тому

    brother telme de jarfiles u have downloaded in jarfiles folder

  • @tejastoley6714
    @tejastoley6714 6 років тому

    i take screenshot of like logo but it will click on share.

  • @HarpreetKaur-nm8qu
    @HarpreetKaur-nm8qu 6 років тому

    Hi Naveen,
    Encountering below error:
    Exception in thread "main" FindFailed: can not find P(images/search.png) S: 0.7 in S(0)[0,0 1280x800]

    • @tejastoley6714
      @tejastoley6714 6 років тому

      how can you take a screen shot of specific element i have a window 10

    • @anupamdey5924
      @anupamdey5924 5 років тому

      @@tejastoley6714 snipping tool

  • @puneetgupta4006
    @puneetgupta4006 5 років тому

    i'm getting below mentioned error -
    [error] RunTimeINIT: *** BE AWARE: Running on Java 8+ *** Please report problems ***
    [error] RunTimeINIT: *** Java 8+: skipped: storeClassPath()
    [error] RunTimeINIT: *** Java 8+: skipped: storeClassPath()
    [error] RunTimeINIT: *** Java 8+: skipped: addToClasspath() - caller: RunTime.libsExport API
    [error] RunTimeINIT: *** Java 8+: skipped: dumpClassPath()
    [error] RunTimeINIT: *** terminating: libs to export not found on above classpath: /sikulixlibs/windows/libs64
    kindly suggest me if anyone knows

  • @DeepakVishwakarma-uv4yr
    @DeepakVishwakarma-uv4yr 5 років тому

    Can someone please help me with sikuli script api link. It will be really helpful.

  • @priyal7641
    @priyal7641 6 років тому

    Please guide me to create Maven project

  • @danedocgiant5761
    @danedocgiant5761 2 роки тому

    knowledgable guy. i don't like his attitude though.

  • @sabavathamir3611
    @sabavathamir3611 6 років тому

    why r u using sikuli..for webapplication..we have xpath and y r u using sikuli naveen..

  • @kshipra4504
    @kshipra4504 2 роки тому

    Getting Exception ----> Exception in thread "main" java.lang.ExceptionInInitializerError at org.sikuli.basics.Debug.log(Debug.java:697) for line Screen s=new Screen(). Seems to be related with maven jar...Please suggest

  • @DineshKumar-du2dm
    @DineshKumar-du2dm 5 років тому

    Hi Naveen,
    I'm struct with the below error when i tried to use sikuli with selenium. Could you please help me to figure out the solution for this issue.
    Exception in thread "main" FindFailed: can not find P(C:/Selenium/gmail.PNG) S: 0.7 in S(0)[0,0 1280x720]
    Line 2189, in file Region.java
    at org.sikuli.script.Region.handleFindFailedShowDialog(Region.java:2189)
    at org.sikuli.script.Region.handleFindFailed(Region.java:2134)
    at org.sikuli.script.Region.wait(Region.java:2546)
    at google.main(google.java:26)