Forum

Forum
How to ignore a spe...
 
Notifications
Clear all

[Solved] How to ignore a specific element from visual testing at runtime?

New Member Guest
Joined: 2 years ago
Posts: 1
Topic starter  

How can I ignore an element at runtime using Imagium and selenium?


   
Quote
Amrita Kaur
Member Admin
Joined: 3 years ago
Posts: 107
 

ExcludeRegion can be passed as an optional parameter in the validate Imagium API.

Checkout 1. Rest API - Imagium for more details


   
ReplyQuote
New Member Guest
Joined: 1 second ago
Posts: 0
 

Here is how you can generate the rectangles at runtime:

driver.get("https://www.google.com");
WebElement we =   driver.findElement(By.name("q"));
int x = we.getRect().x;
int y = we.getRect().y; 
int w = we.getRect().width; 
int h = we.getRect().height; 
String rectangle = String.valueOf(x)+","+String.valueOf(y)+","+String.valueOf(w)+","+String.valueOf(h);

   
admin reacted
ReplyQuote

Leave a reply

Author Name

Author Email

Title *

Maximum allowed file size is 10MB

 
Preview 0 Revisions Saved