How to use Container in find operation in Jemmy library?

Ivan Gerasimenko

Can anyone give explanation and an example of Container usage?

E.g. I am trying to find JProgressBar, and all the find method has Container as the first param.:

JProgressBar pb = JProgressBarOperator.findJProgressBar([Container cont]);

I supposed that JFrame or JDialog etc. could be used (cast) as Container, but it is not. So what is it?

Ivan Gerasimenko

The solution is to get Container of parent element by .getContentPane():

JFrameOperator mf = new JFrameOperator("Main Frame");
JDialogOperator jd = new JDialogOperator(mf, ""); // dialog that contains JProgressBar has no name
JProgressBar pb = JProgressBarOperator.findJProgressBar(jd.getContentPane());

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to properly use jsPDF library

From Dev

how to use return keyword in a find operation in binary search tree

From Dev

How to use cmake to find the boost pool library?

From Dev

How to use native library

From Dev

How to use MySQL string operation?

From Dev

How to use DI container in reusable library?

From Dev

How to use Python newspaper library?

From Dev

How to use a library on SAPWebIDE

From Dev

prolog how to use math operation

From Dev

How to use Gdb debugger to find value of ZZ object from Number Theory Library?

From Dev

Use JNI library in Servlet container

From Dev

How to use stack image container?

From Dev

How to use dryioc container from main app in class library

From Dev

How can I find out what linker flags are needed to use a given C library function?

From Dev

How to find location of installed library

From Dev

How to use arrayUnion in set operation

From Dev

How can I find out what linker flags are needed to use a given C library function?

From Dev

How to find location of installed library

From Dev

How to find where a library is installed?

From Dev

How to use shared library

From Dev

how to use return keyword in a find operation in binary search tree

From Dev

How to use SQL UNION operation

From Dev

How to use native library

From Dev

How to use MySQL string operation?

From Dev

How to find/use a library on system without using Autoconf or Cmake?

From Dev

How to use Mongoose sum operation?

From Dev

How to use stack image container?

From Dev

How to use dryioc container from main app in class library

From Dev

How to use map container?