Troubleshooting web

1 - An element is not detectable because of a WebView

Websites contain WebViews. With this type of view, the elements inside are not always updated. Consequently, it can be difficult to detect the elements of a web page.

Here is what you can do in this case:

  • Make sure you are using chrome 110 to be in the same conditions as our testbench

  • To click on an element, first click on a location with no element on the page with the clickByPercent function to refresh the page. For example, if there is no element in the middle of the page, you can use clickByPercent,50,50. Then, you can try to click on the expected element with the clickByText function. The clickByXY and clickByPercent functions should be avoided because they may not work on another device. However, if the solutions above do not allow you to detect the expected element, theses functions can be used.

  • To wait for an element, you can use setCompressedLayoutHierarchy,false just before the wait.

measureStart,CHRGT_contactPage clickByText,Go to the contact page setCompressedLayoutHierarchy,false waitUntilText,Contact page pause,${PAUSEAFTERLOAD} measureStop
  • To wait for an element, if the first solution does not work, you can add the pause function between the click and the wait functions. It can help to update the elements inside a WebView.

measureStart,CHRGT_contactPage clickByText,Go to the contact page pause,${PAUSEAFTERLOAD} waitUntilText,Contact page pause,${PAUSEAFTERLOAD} measureStop

2 - browserPrepareAndOpenForReference command does not work

This method is a bit special and is only useful for preparing the phone for measurement. This will not necessarily work on all versions of Chrome and Android.

If you are using your own phone to set up your GDSL tests, you can prepare Chrome manually on your phone by closing all tabs and then closing Chrome. Then you can replace the “browserPrepareAndOpenForReference” method with the “launchBrowser” method in your GDSL script. This method will allow you to make a simple chrome opening without preparation.

Be careful though, when you send your tests to the remote devices on Test Bench to obtain measurements, you will need to remember to put this 'browserPrepareAndOpenForReference' method back into your GDSL script.

If you want to do measurement with your own phone, you will probably need to install a compatible version of Chrome with all GDSL commands : chrome 110.

To change chrome version on your phone on android 10+, you can do

  • Close your Chrome on your device

  • Download the mandatory library for chrome 110 trichrome-library

  • Connect your phone to your PC

  • Open a terminal on the directory where you download the apk and enter the command (if you have difficulty, please use completion to let your terminal set the correct path to the apk)

    adb install com.google.android.trichromelibrary_110.0.5481.65-548106533_minAPI29\(arm64-v8a,armeabi-v7a\)\(nodpi\)_apkmirror.com.apk
  • Download the .apkm bundle of chrome 110 here : chrome 110

  • Unzip the .apkm file

  • Connect your phone to your PC

  • Open a terminal on the unzip directory

  • Enter the command

  • Open chrome on check it works

  • You need to prepare your chrome to use GDSL commands

If the chrome 110 installation does not work, you probably have a phone with android <10 or your phone does not have a processor arm64-v8a. You can check with the command adb shell getprop ro.product.cpu.abi

On these cases, you need to download chrome 110 archive which is suitable for your device


In this tutorial, we suggest to use apkmirror. Greenspector cannot be held responsible in the event of a security problem. We can only say that apkmirror is a good alternative to playstore with a serious community. Only community member can publish on the store, you just install an apk with the same signature as your chrome (the command ‘adb install’ will detect if the apk was not signed by google).

To change chrome version on your phone on android 10+, you can do

  • Close your Chrome on your device

  • Download the mandatory library for chrome 110 trichrome-library

  • Connect your phone to your PC

  • Open a terminal on the directory where you download the apk and enter the command (if you have difficulty, please use completion to let your terminal set the correct path to the apk)

  • Download the .apkm bundle of chrome 110 here : chrome 110

  • Unzip the .apkm file

  • Connect your phone to your PC

  • Open a terminal on the unzip directory

  • Enter the command

  • Open chrome on check it works

  • You need to prepare your chrome to use GDSL commands

  • Close your Chrome on your device

  • Connect your phone to your PC

  • Download the .apkm bundle of chrome 110 here : Chrome 110

  • Unzip the .apkm file

  • Open a terminal on the unzip directory

  • Open chrome on check it works

  • You need to prepare your chrome to use GDSL commands