testdriverai 4.0.51 → 4.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +15 -12
  2. package/lib/redraw.js +0 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -669,21 +669,24 @@ New commands will be appended.
669
669
 
670
670
  let setTerminalWindowTransparency = async (hide) => {
671
671
 
672
+ if (hide) {
672
673
 
673
- try {
674
- await http.get('http://localhost:60305/hide')
675
- } catch (e) {
676
- // Suppress error
677
- console.error('Caught exception:', e);
678
- }
674
+ try {
675
+ http.get('http://localhost:60305/hide').on('error',function(){}).end();
676
+ } catch (e) {
677
+ // Suppress error
678
+ console.error('Caught exception:', e);
679
+ }
680
+ } else {
679
681
 
680
- try {
681
- await http.get('http://localhost:60305/show');
682
- } catch (e) {
683
- // Suppress error
684
- console.error('Caught exception:', e);
685
- }
682
+ try {
683
+ http.get('http://localhost:60305/hide').on('error',function(){}).end();
684
+ } catch (e) {
685
+ // Suppress error
686
+ console.error('Caught exception:', e);
687
+ }
686
688
 
689
+ }
687
690
 
688
691
  if (!config.TD_MINIMIZE) {
689
692
  return
package/lib/redraw.js CHANGED
@@ -29,7 +29,6 @@ function wait(timeoutMs) {
29
29
  const startTime = Date.now();
30
30
 
31
31
  async function checkCondition() {
32
- console.log('check condition')
33
32
  let nowImage = await captureScreenPNG();
34
33
  let result = await compareImages(startImage, nowImage);
35
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.0.51",
3
+ "version": "4.0.52",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {