Is it possible to set the Global search rectangle Defaults to SUT than the phone or machine to avoid reading status bar or task bar.
Post script execution reset to phone full screen.
Or any other method to avoid reading from status bar or taskbar
Is it possible to set the Global search rectangle Defaults to SUT than the phone or machine to avoid reading status bar or task bar.
Post script execution reset to phone full screen.
Or any other method to avoid reading from status bar or taskbar
Hey @Nirmala,
welcome to the eggplant world.
Here are the options:
Click text:"State",searchrectangle:screenpart("LeftHalf")
the searchrectangle
. It will change the searchrectangle for ALL consecutive text searches. [top left x , top left y, bottom right x, bottom right y]
set the searchrectangle to remotescreenrectangle() +[0,100,0,-200] # the search rectangle starts at 100 pixels from the top and ends 200 pixel before the screen ends at the bottom.
click text:" My Name" , searchrectangle: ["Imag1","Folder/Image2"]
Let me know in case you have further questions.
Cheers,
Karsten
Hello,
Yes, you can set the Global search rectangle defaults to SUT to avoid reading the status bar or taskbar. This can be achieved by configuring the search area to focus only on the relevant portions of the screen.
After script execution, you can use a command or script to reset the phone to full screen, ensuring it doesn’t read from the status bar or taskbar.
Alternatively, using image masking or adjusting the coordinates for your search area can help exclude unwanted regions like the status bar or taskbar.
Best Regards,
Thomas Brown