Advertisement
chron4ik

Untitled

Feb 18th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. public class SizeBrowserTest implements BeforeAllCallback {
  2. @Override
  3. public synchronized void beforeAll(ExtensionContext context) {
  4. Configuration.proxyEnabled = true;
  5. Configuration.browser = "chrome";
  6.  
  7. BrowserUpProxy bmp = WebDriverRunner.getSelenideProxy().getProxy();
  8. // запоминать тело запросов (по умолчанию тело не запоминается, ибо может быть большим)
  9. bmp.setHarCaptureTypes(CaptureType.getAllContentCaptureTypes());
  10.  
  11. // запоминать как запросы, так и ответы
  12. bmp.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, CaptureType.RESPONSE_CONTENT);
  13.  
  14. // начинай запись!
  15. bmp.newHar("browserResizeTest");
  16.  
  17. }
  18.  
  19. @Test
  20. void test(){
  21.  
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement