如何在硒中打开的顶部显示铬色[Mac OS X] [英] How to make chrome display on the top opened in selenium [Mac OS X]

查看:90
本文介绍了如何在硒中打开的顶部显示铬色[Mac OS X]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用Firefox浏览器时,该窗口位于顶部,但对于Chrome浏览器则不是. 那么,如何使Chrome窗口位于顶部?

When I use Firefox browser then the window is on top, but for Chrome it is not. So, how can I make Chrome window be on top?

我看过selenium2library\keyword\_browsermanagement.py,但是找不到任何有用的关键字.

I have seen the selenium2library\keyword\_browsermanagement.py, but can't find any useful keyword(s).

推荐答案

您是否尝试过Selenium2Library中可用的获取窗口标识符",获取窗口名称",获取窗口标题"和列出Windows关键字"?如果您成功使用其中之一,则他们应该能够选择窗口"并将其带到最前线.

Have you tried the Get Window Identifiers, Get Window Names, Get Window Titles, List Windows keywords available in the Selenium2Library? If you've success with one of them, you should them be able to Select Window and bring it to the forefront.

我们可以在您的问题中使用更多上下文,您是否同时打开了多个浏览器?如果是这样,为什么?

We could use a bit more context in your question, do you have multiple browsers open at once? If so, why?

这篇关于如何在硒中打开的顶部显示铬色[Mac OS X]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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