브라우저 상자에 이벤트를 발생시키고 있지만 URL을 탐색할 때마다 브라우저 수준 확대/축소가 재설정됩니다.
크롬과 같은 브라우저 수준 줌은 "{ctrl} + {마우스 휠}" 또는 "{Ctr}l + {+}"로 제어됩니다.
이것을 제어하거나 사용자의 이전 설정을 유지하기 위해 설정할 수 있는 매개변수가 있습니까?
매번 100%로 들어오는 것은 이상적이지 않습니다.
웹 페이지도 완전히 제어할 수 있지만 CSS 솔루션을 원하지 않음 , 브라우저 수준 줌을 사용하는 이유가 있습니다. CSS를 사용하는 다른 확대/축소 기능이 있습니다.
Chromedriver와 셀레늄은 내가 사용하고 있는 다른 옵션이지만 chromedriver에는 제거하고 싶은 외부 후크가 필요합니다.
그러나 이 문제는 없습니다. 브라우저 인스턴스는 사용자가 수정할 때까지 확대/축소 수준을 유지합니다.
Try(
wb << navigate (url);
,
Throw(
w = New Window( "JMP_Driver", wb = Web Browser Box());
w << Set window size (1200,1200);
//wb << set auto stretching (1,1);
//w << set auto stretching (1,1);
wb << navigate (url);
)
);
I find the Web Browser Box() super helpful! Edge (based on chromium) has such a better display engine than JMP, so for complicated forms and UI elements, implementing them in the web as a SPA is preferable. The hard part was to have JMP + SPA instance communicate reliably, but that was just tedious rather than difficult. I'm curious as to what you're wanting with your embedded web app -- if it's your own web-app, then maybe you can set it up to not do reloads, and then it'll keep it's zoom-level.