浏览器最大化在Karate-UI中不起作用 [英] Browser maximize is not working in Karate-UI

查看:76
本文介绍了浏览器最大化在Karate-UI中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Karate UI的新手,并试图在Mac上使用Karate ZIP版本(0.9.6RC4)来最大化Chrome浏览器

I am new to Karate UI and trying to maximize the chrome browser using Karate ZIP release(0.9.6RC4) on mac

我都没有运气尝试过

Given driver 'https://google.com'
And driver.maximize()
And maximize()

不过fullscreen()工作正常,请提供帮助

However fullscreen() is working fine, kindly help

推荐答案

对不起,这似乎是Chrome本身的错误.您可以尝试以下实验:

Sorry it seems to be a bug in Chrome itself. You can try this experiment:

* driver.send({"method":"Browser.setWindowBounds","params":{"windowId":1,"bounds":{"windowState":"minimized"}}})

现在将minimized替换为normalmaximized,您将看到maximized不起作用.但这应该符合规范: https://chromedevtools .github.io/devtools-protocol/tot/Browser/#method-setWindowBounds

Now replace minimized with normal or maximized and you will see maximized does not work. But it is supposed to as per the spec: https://chromedevtools.github.io/devtools-protocol/tot/Browser/#method-setWindowBounds

这肯定可以在以前的Chrome版本中使用:)

This definitely used to work in previous versions of Chrome :)

我们不认为这是优先事项,可以随时提出功能要求,并调查Chrome是否存在已知问题.因此,我将问题请您帮忙".我们需要更多的开源用户来贡献力量.

We don't consider this a priority, feel free to raise a feature-request and also investigate if there is a known problem with Chrome. So I put the question back to you "kindly help". We need more open-source users to contribute.

还要注意,驱动程序类型chromedriver可以正常工作.

Also note that driver type chromedriver works fine.

这篇关于浏览器最大化在Karate-UI中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆