[Sikuli-driver] [Question #678279]: Unable to install OpenCV 2.4.x and Tesseract 3.0.2 and libopencv_core.so.2.4 libopencv_imgproc.so.2.4 libopencv_highgui.so.2.4 libtesseract.so.3

2019-02-01 Thread monicar
New question #678279 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678279

Hi,

I am getting the following error while running Sikuli scripts on Grid through 
Jenkins.
Hub : Red Hat Enterprise Linux Server release 7.6 (Maipo)
Node Win10

09:35:50 [error] RunTimeINIT: fatal error: java.io.IOException: Cannot run 
program "lsb_release": error=2, No such file or directory
09:35:50 [error] RunTimeAPI: loadLib: libVisionProxy.so not usable: 
09:35:50 java.lang.UnsatisfiedLinkError: 
/var/lib/jenkins/.Sikulix/SikulixLibs_201711011200/libVisionProxy.so: 
libopencv_core.so.2.4: cannot open shared object file: No such file or directory
09:35:50 [error] RunTimeAPI: loadLib: libVisionProxy.so not usable: 
09:35:50 java.lang.UnsatisfiedLinkError: 
/var/lib/jenkins/.Sikulix/SikulixLibs_201711011200/libVisionProxy.so: 
libopencv_core.so.2.4: cannot open shared object file: No such file or directory
09:35:50 [info] runcmd: ldconfig -p 
09:35:50 [error] LinuxSupport: checking: OpenCV not in loader cache (see 
doc-note on OpenCV)
09:35:50 [error] LinuxSupport: checking: Tesseract not in loader cache (see 
doc-note on Tesseract)
09:35:50 [error] RunTimeAPI: Problematic lib: 
/var/lib/jenkins/.Sikulix/SikulixLibs_201711011200/libVisionProxy.so 
(...TEMP...)
09:35:50 [error] RunTimeAPI: libVisionProxy.so loaded, but it might be a 
problem with needed dependent libraries
09:35:50 ERROR: ...TEMP...: libopencv_core.so.2.4: cannot open shared object 
file: No such file or directory
09:35:50 [error] RunTimeAPI:  *** terminating: problem with native library: 
libVisionProxy.so

I tried to install following :

libopencv_core.so.2.4
libopencv_imgproc.so.2.4
libopencv_highgui.so.2.4
libtesseract.so.3

Getting below msg:
[root@rsaautotesting ~]# yum install libopencv_highgui.so.2.4
Loaded plugins: langpacks, product-id, search-disabled-repos, 
subscription-manager
No package libopencv_highgui.so.2.4 available.
Error: Nothing to do


Please advice and also share the commands to install libraries neccesary to run 
Sikuli script on RHEL(Linux)


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #677950]: Need help setting up Sikulix 1.1.4 on Linux RHEL 7.3

2019-01-20 Thread monicar
New question #677950 on Sikuli:
https://answers.launchpad.net/sikuli/+question/677950

Need Linux commands to install sikuli.jar , OpenCV and Tesseract on Linux RHEL 
7.3. As I am very new to Linux.

Thank you!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #677830]: Sikuli script failing while running on Selenium-Grid

2019-01-16 Thread monicar
Question #677830 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677830

Status: Needs information => Open

monicar gave more information on the question:
Yes, updated my sikulix version to latest. SikuliX 1.1.4
And I downloaded all  sikuli jars and saved into lib folder and  made all
jars added to Global library(IntelliJ Idea).
[image: Temp_Sikulijars.png]
Then I committed the changes into SVN and build the job from Jenkins to run
on Selenium_Grid.
[image: Temp_Gridconsole.png]
Error on Jenkins:
[image: Temp_SikuliErroronJenkins.png]

where /var/lib/jenkins/workspace is the jenkins workspace path in
linux(Windows subsystem)Selenium-Grid HUB
Please advice



>
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #677830]: Sikuli script failing while running on Selenium-Grid

2019-01-15 Thread monicar
New question #677830 on Sikuli:
https://answers.launchpad.net/sikuli/+question/677830

Steps that I configured:
1. created a windows subsystem for Linux(Ubuntu) on my WIN10
2. Installed java and Jenkins on Linux Subsystem
3.Selenium-Grid Hub : Registered Ubuntu server as Grid 
4. Selenium- Grid Node: Registered my local Windows as Node
5. Launching Jenkins on my Windows10 system that I configured on Linux 
Subsystem 

My StartNode JSON file:

{
  "capabilities":
  [

{
  "browserName": "internet explorer",
  "maxInstances": 1,
  "seleniumProtocol": "WebDriver",
  "applicationName":"sikuli",
  "browserVersion": "11"
},
{
  "browserName": "chrome",
  "maxInstances": 1,
  "seleniumProtocol": "WebDriver"
}
  ],
  "platform":"Windows",
  "host":"127.0.0.1",
  "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
  "maxSession": 5,
  "port": ,
  "register": true,
  "registerCycle": 5000,
  "hub": "http://127.0.0.1:;,
  "nodeStatusCheckTimeout": 5000,
  "nodePolling": 5000,
  "role": "node",
  "unregisterIfStillDownAfter": 6,
  "downPollingLimit": 2,
  "debug": false,
  "servlets" : [],
  "withoutServlets": [],
  "custom": {}
}

Error on Jenkins:

16:26:30 java.lang.NullPointerException
16:26:30at org.sikuli.script.Screen.capture(Screen.java:587)
16:26:30at org.sikuli.script.Screen.capture(Screen.java:607)
16:26:30at 
org.sikuli.script.Region.doCheckLastSeenAndCreateFinder(Region.java:3001)
16:26:30at 
org.sikuli.script.Region.checkLastSeenAndCreateFinder(Region.java:2996)
16:26:30at org.sikuli.script.Region.doFind(Region.java:2945)
16:26:30at org.sikuli.script.Region.access$500(Region.java:21)
16:26:30at org.sikuli.script.Region$RepeatableFind.run(Region.java:3169)
16:26:30at org.sikuli.script.Region$Repeatable.repeat(Region.java:3125)
16:26:30at org.sikuli.script.Region.wait(Region.java:2756)
16:26:30at org.sikuli.script.Region.find(Region.java:2329)
16:26:30at 
org.sikuli.script.Region.getLocationFromTarget(Region.java:3238)
16:26:30at org.sikuli.script.Region.click(Region.java:3736)
16:26:30at org.sikuli.script.Region.keyin(Region.java:4414)
16:26:30at org.sikuli.script.Region.type(Region.java:4377)

16:26:30at ?.When an user logs in with badgeID as 42028 and password as 
sdsds(/var/lib/jenkins/workspace/Test/src/test/resources/features/Donor 
Volumes/TrimaAccel/Rinseback_VolumeLoss.feature:13)

** It is starting Internet Explorer and failing once Sikuli script starts.

Please advice ..


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676619]: Getting text(date) from image that changes everyday

2018-12-05 Thread monicar
Question #676619 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676619

monicar posted a new comment:
Thanks Raiman. Working as expected with offset.

On Wed, Dec 5, 2018, 10:56 AM RaiMan  Your question #676619 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/676619
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> --- general comment
>   screen.wait(txtImage, 10);
>String extractText = screen.find(txtImage).text();
>
> This does not really make sense:
>   Match theText = screen.wait(txtImage, 10); // gives the region
> of the image
>   String extractText = theText.text();
>
> or even shorter:
>   String extractText = screen.wait(txtImage, 10).text()
>
> --- your problem
> As I understand, the region on the screen of the found txtImage contains
> the text you want to read and this area changes.
>
> --- how to:
> - find some image near the text region, that does not change.
> - define the region with the text relative to this match
> - read the text from this region
>
> meta code:
> ref = find(someReferenceImage)
> textRegion = ref.offset(x, y).grow() // x, y and ... have to be
> evaluated manually
> txt = textRegion.text()
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/676619/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/676619
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676619]: Getting text(date) from image that changes everyday

2018-12-05 Thread monicar
Question #676619 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676619

Status: Answered => Solved

monicar confirmed that the question is solved:
Offset worked.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #676619]: Getting text(date) from image that changes everyday

2018-12-05 Thread monicar
New question #676619 on Sikuli:
https://answers.launchpad.net/sikuli/+question/676619

I am trying to get text from image. Text is the date that changes every hour. 
Sikuli is getting the text what is in image not on the application.

I am comparing the Text(Date) string with the  my calculated date. As the Date 
from the application changes often my scripts are failing.

Here is the logic:

  try {

//Extract Donor's Status text from the region
Settings.OcrTextRead = true;
Settings.OcrTextSearch = true;

screen.wait(txtImage, 10);
String extractText = screen.find(txtImage).text();
extractText = extractText.replaceAll("[a-zA-Z]","/");
   // extractText = extractText.substring(3);
   Date date1 = new 
SimpleDateFormat(US_DATE_FORMAT_STRING).parse(extractText);
TestEnvironment.get().getTestLogger().log("Eligibility Date: " + 
extractText);

LocalDate today = LocalDate.now();
LocalDate drawdate = null;

if (period.toLowerCase().contains("today")){
drawdate =LocalDate.now();
} else if (period.toLowerCase().contains("week")){
drawdate = today.minus(1, ChronoUnit.WEEKS);
} else if (period.toLowerCase().contains("month")){
drawdate = today.minus(1, ChronoUnit.MONTHS);
}else {
throw new IllegalArgumentException(period);
}

LocalDate eligibilityDate = drawdate.plus(days, ChronoUnit.DAYS);
TestEnvironment.get().getTestLogger().log("Calculated Eligibility 
Date: " + eligibilityDate);

TestEnvironment.get().getErrorCollector().checkThat("Eligibility 
Date:", extractText, is(equalTo(eligibilityDate.format(US_DATE_FORMAT;

} catch (FindFailed | ParseException  error) {
TestEnvironment.get().getErrorCollector().addError(error);
}

extractText  changes often in my application, I have to take screenshot when 
ever it changes and run my scripts. Can you please suggest me any other 
alternatives to get dynamic text from application instead of the captured image.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676153]: Trying to select date from Calender Icon

2018-11-14 Thread monicar
Question #676153 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676153

monicar gave more information on the question:
[image: CalenderIcon.png]  Image 1

[image: CalendarNextMonth.png] Image 2

[image: CalendarExpDate.png]  Image 3

On Wed, Nov 14, 2018 at 11:47 AM monicar <
question676...@answers.launchpad.net> wrote:

> New question #676153 on Sikuli:
> https://answers.launchpad.net/sikuli/+question/676153
>
> I have  3 images, Image1 will click on the Calender Icon, Image2 will
> click on Next Month arrow (>) and Image 3 will select the Date image( In my
> case Dec 15th).
>
> It is clicking the Calender Icon and Next month. But failing to click on
> the date.
>
> screen.hover(calIcon);
> screen.click(calIcon);
> screen.wait(calNextMonth,5);
> screen.hover(calNextMonth);
> screen.click(calNextMonth);
> screen.wait(calExpDate,15);
> screen.hover(calExpDate);
> screen.click(calExpDate);
>
> Please help!
>
>
> --
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #248709]: Need help to manipulate Date picker

2018-11-14 Thread monicar
Question #248709 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/248709

monicar requested more information:
I am having the same issue, I am trying to select date from date time
picker but I coud'nt (Flash Application)

Can I have code in Java please?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #676153]: Trying to select date from Calender Icon

2018-11-14 Thread monicar
New question #676153 on Sikuli:
https://answers.launchpad.net/sikuli/+question/676153

I have  3 images, Image1 will click on the Calender Icon, Image2 will click on 
Next Month arrow (>) and Image 3 will select the Date image( In my case Dec 
15th).

It is clicking the Calender Icon and Next month. But failing to click on the 
date.

screen.hover(calIcon);
screen.click(calIcon);
screen.wait(calNextMonth,5);
screen.hover(calNextMonth);
screen.click(calNextMonth);
screen.wait(calExpDate,15);
screen.hover(calExpDate);
screen.click(calExpDate);

Please help!


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676150]: Handling Same textfields: How to enter the text in one of the textfield

2018-11-14 Thread monicar
Question #676150 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676150

Status: Open => Solved

monicar confirmed that the question is solved:
Solved Myself

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676150]: Handling Same textfields: How to enter the text in one of the textfield

2018-11-14 Thread monicar
Question #676150 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676150

monicar posted a new comment:
Solved myself


On Wed, Nov 14, 2018 at 9:48 AM monicar <
question676...@answers.launchpad.net> wrote:

> Your question #676150 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/676150
>
> You gave more information on the question:
> [image: temp.png]
>
> I have to enter the text in one of the field.
>
> On Wed, Nov 14, 2018 at 9:37 AM monicar <
> question676...@answers.launchpad.net> wrote:
>
> > New question #676150 on Sikuli:
> > https://answers.launchpad.net/sikuli/+question/676150
> >
> > I my flash application I have 6 Textfields with same name .How to handle
> > that .
> >
> > --
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676150]: Handling Same textfields: How to enter the text in one of the textfield

2018-11-14 Thread monicar
Question #676150 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676150

monicar gave more information on the question:
[image: temp.png]

I have to enter the text in one of the field.

On Wed, Nov 14, 2018 at 9:37 AM monicar <
question676...@answers.launchpad.net> wrote:

> New question #676150 on Sikuli:
> https://answers.launchpad.net/sikuli/+question/676150
>
> I my flash application I have 6 Textfields with same name .How to handle
> that .
>
> --
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #676150]: Handling Same textfields: How to enter the text in one of the textfield

2018-11-14 Thread monicar
New question #676150 on Sikuli:
https://answers.launchpad.net/sikuli/+question/676150

I my flash application I have 6 Textfields with same name .How to handle that .

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676036]: Trying to extract Date from the region and getting garbage values

2018-11-10 Thread monicar
Question #676036 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676036

Status: Answered => Open

monicar is still having a problem:
Thanks, I'll check it out.

On Sat, Nov 10, 2018, 9:12 AM masuo  Your question #676036 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/676036
>
> Status: Open => Answered
>
> masuo proposed the following answer:
> The extract result changes depending on the region surrounding characters.
> I recommend you to examine what region is suitable to extract characters.
>
> I tested this code by SikuliX1.1.4.
> [example as python:]
> tr = TextOCR.start()
> tr.setLanguage("eng")
> while True:
> r = selectRegion()
> s = r.text()
> App.setClipboard(s)
> popup(s)
> ans = popAsk("continue?")
> if ans == False:
> break
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/676036/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/676036
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #676036]: Trying to extract Date from the region and getting garbage values

2018-11-09 Thread monicar
New question #676036 on Sikuli:
https://answers.launchpad.net/sikuli/+question/676036

Here is my code in Java:  
   Settings.OcrTextRead= true;
Settings.OcrTextSearch= true;
screen.wait(TextExtract,20);
String extractText = screen.find(TextExtract).text();
System.out.println(extractText);

Result:
11i09;’2018

Expected:
11/09/2018

Please help


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676023]: Scroll down drop-down menu and select country

2018-11-09 Thread monicar
Question #676023 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676023

Status: Open => Solved

monicar confirmed that the question is solved:
set timeout =0 for exists() resolved my problem. Awesome work Sikuli team.
Thanks for the quick help, Masuo!

screen.click(Country_dd);
Match header = screen.find(Country_dd);
region = header.below(150).left(5).left(1).right(1000);
do {
if (region.exists(Country,0) != null)//
{
region.click(Country);
Flag = 1;
break;
} else {
   region.type(Key.DOWN);
}
} while (Flag != 1);

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676023]: Scroll down drop-down menu and select country

2018-11-09 Thread monicar
Question #676023 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676023

Status: Answered => Open

monicar is still having a problem:
Awesome, thanks!

On Thu, Nov 8, 2018 at 4:42 PM masuo 
wrote:

> Your question #676023 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/676023
>
> Status: Open => Answered
>
> masuo proposed the following answer:
> set timeout =0 for exists(), it will be faster than it is now.
>
> https://raiman.github.io/SikuliX1/javadocs/org/sikuli/script/Region.html#exists(PSI,double)
>
> But if it takes 600 seconds now, even if it gets faster it will be 200
> seconds.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/676023/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/676023
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676023]: Scroll down drop-down menu and select country

2018-11-08 Thread monicar
Question #676023 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676023

monicar posted a new comment:
  Match header = screen.find(country);
region =header.below(150).left(5).left(1).right(1000);
do {
if (region.exists(country) != null)//
{
region.click(country);
Flag = 1;
break;
} else {
region.type(Key.DOWN);
}
} while (Flag != 1);

Above code is working but to select United States it taking more than 10 mins  
by type Enter on each value and checking if that value exists
Please help

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #676023]: Scroll down drop-down menu and select country

2018-11-08 Thread monicar
Question #676023 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676023

monicar posted a new comment:
I tried the following code:

 do {
if (region.exists("UNITED STATES") != null)//
{
region.click("UNITED STATES");
Flag = 1;
break;
} else {
region.type(Key.DOWN);
}
} while (Flag != 1);

No luck. Let me know what i am missing

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #676023]: Scroll down drop-down menu and select country

2018-11-08 Thread monicar
New question #676023 on Sikuli:
https://answers.launchpad.net/sikuli/+question/676023

I am automating Flash application using Sikuli ,IntelliJ and Selenium 
WebDriver. I am trying to select a country from drop down menu. Using the 
following code:

 while(screen.exists(country)!=null){
screen.type(Key.DOWN);
screen.click(country);

}

Instead of clicking United states, it's selecting the first value that is 
Afghanistan.



-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675532]: how to select dropdown value and click in sikulix

2018-11-07 Thread monicar
Question #675532 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675532

Status: Answered => Solved

monicar confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675972]: How to wait for Text field while page loading and type text when field is active.

2018-11-07 Thread monicar
Question #675972 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675972

Status: Answered => Solved

monicar confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675972]: How to wait for Text field while page loading and type text when field is active.

2018-11-07 Thread monicar
Question #675972 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675972

Status: Answered => Open

monicar is still having a problem:
Thanks masuo!

Can I have example in java please

On Wed, Nov 7, 2018, 5:16 AM masuo  Your question #675972 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/675972
>
> Status: Open => Answered
>
> masuo proposed the following answer:
> I understand that "searchDonor" is an image to identify text box.
> If so, you can use exists().
>
> [example as python:]
> while not exists("searchDonor.png"):
> sleep(1)
> paste("searchDonor.png", searchDonorText)
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/675972/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/675972
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675972]: How to wait for Text field while page loading and type text when field is active.

2018-11-06 Thread monicar
Question #675972 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675972

Summary changed to:
How to wait for Text field while page loading and type text when field is 
active.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #675972]: How to wait for Text field while page loading and type text when field id active.

2018-11-06 Thread monicar
New question #675972 on Sikuli:
https://answers.launchpad.net/sikuli/+question/675972

Is there any alternative to Thread.sleep in sikuli on page loading 

  public static void searchCreateNewDonor(String searchDonorText, Screen 
screen, Pattern searchDonor, Pattern select_CreateDonor) {

try {

Thread.sleep(2);
screen.wait(searchDonor, 10);
screen.type(searchDonor, searchDonorText);
screen.hover(select_CreateDonor);
screen.doubleClick(select_CreateDonor);

} catch (FindFailed findFailed) {
findFailed.printStackTrace();
} 

}



-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675532]: how to select dropdown value and click in sikulix

2018-10-25 Thread monicar
Question #675532 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675532

Status: Answered => Open

monicar is still having a problem:
Where can I find the documentation code for Java?

I see all answers mostly in Python.

Thanks

On Thu, Oct 25, 2018, 5:16 AM RaiMan 
wrote:

> Your question #675532 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/675532
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> use 1.1.4 and try with the new text features.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/675532/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/675532
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #675532]: how to select dropdown value and click in sikulix

2018-10-24 Thread monicar
Question #675532 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/675532

Status: Needs information => Open

monicar gave more information on the question:
Scenario: select a drop down value from drop down list (where user can pass
drop down value as a parameter to select as per requirement)
I am trying to get all drop down values and loop through the list until
desired drop down value exists.


[image: exam1.png]

On Wed, Oct 24, 2018 at 10:57 AM masuo 
wrote:

> Your question #675532 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/675532
>
> Status: Open => Needs information
>
> masuo requested more information:
> I can not understand what you are having troubled from what you wrote so
> far.
> Please write a little more concretely what you want to solve.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/sikuli/+question/675532
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #675532]: how to select dropdown value and click in sikulix

2018-10-24 Thread monicar
New question #675532 on Sikuli:
https://answers.launchpad.net/sikuli/+question/675532

stack trace using for my automation project:

sikulixapi-1.1.2 
java- Java\jdk1.8.0_191
Application Flash application
Selenium webdriver

I am struck in selecting the dropdown value and click on it.

Please need help!



-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp