geb

世界上五个最不务正业的科学家!看完三观都碎了…

纵然是瞬间 提交于 2021-02-07 21:17:52
作者 | 王不二 来源 | 知乎 今天就和你一起来膜拜一下 科学家们在各种领域的乱入 前方高能 都是神一样的存在 受不了请绕道! 第五位 海蒂·拉玛 Hedy Lamarr 学术指数:87 不务正业指数:85 首先要说到了众多野生科学家的女神,容我喝口水先。 上图是海蒂·拉玛在1941年申请的一项专利技术,据说灵感来自于音符。其中的无线电跳频技术,成为今天 CDMA 和 WiFi 的基础。所以大家把拉玛亲切地称为:“CDMA 之母”、“WiFi 之母”。 听上去好像有点浮夸…… 可谁叫这位通讯专业出身的姑娘,不仅会写诗,会数学,会跳芭蕾,还胆敢长成这样呢: 1932年,18岁的拉玛出演了电影《神魂颠倒》(Ecstacy),成为人类史上首位全裸出镜的明星。 然而万恶的性别歧视,完全配不上这位女神。性感为她带来的不是赞美,而是诋毁。不仅在影坛被骂作花瓶,她的专利技术也得不到重视,被美国军方封存。尽管她的六任丈夫都自惭形秽,尽管她的680个香吻为反抗纳粹筹足1700万美元,但一切还是不可避免地走向了庸俗。 2014年,在诞辰一百周年之际,海蒂·拉玛终于入选了美国发明家名人堂。 她留给这个世界的一句嘲讽,至今依然适用: Any girl can be glamorous. All you have to do is stand still and look stupid.

IntelliJ type error when using Geb static content DSL with parameters

白昼怎懂夜的黑 提交于 2021-01-28 07:03:16
问题 Whenever I use a static-content defined closure that takes parameters, IntelliJ will complain that the types do not match (even if I specify the type inside the closure). For example, if I use this static content block: static content = { myModule { $('myModule').module(CustomModule) } namedModule { String name -> $(".$name").module(CustomModule) } } Both of the above items can be used successfully in my tests, but if I was to use 'namedModule' in one of my tests as follows: page.namedModule(

geb.driver.DriverCreationException: failed to create driver from callback

拥有回忆 提交于 2020-02-23 03:51:05
问题 I am getting below Exception while running test scripts. geb.driver.DriverCreationException: failed to create driver from callback 'script1501516684770944233575$_run_closure1@6601cc93' java.lang.NoClassDefFoundError: Lorg/openqa/selenium/remote/html5/RemoteWebStorage; failed to create driver from callback 'script1501516684770944233575$_run_closure1@6601cc93' OS: Windows 10 64 bit Chrome browser: v60 (latest one) Selenium :-2.43.1 Chrome web driver:-2.24.417431 geb-version:0.10.0 geb-testng

General Problems With Geb (StaleElementReferenceException & Wait Timeouts)

爷,独闯天下 提交于 2020-01-14 13:51:03
问题 According to the "Book of Geb" I started to map our portal's web pages. I prefer to use variables defined within static content closure block and accessing them afterwards in page methods: static content = { buttonSend { $("input", type: "submit", nicetitle: "Senden") } } def sendLetter() { waitFor { buttonSend.isDisplayed() } buttonSend.click() } Unfortunately, sometimes I get an Geb waiting timeout exception (after 60 secs) or even worse I receive the well known

General Problems With Geb (StaleElementReferenceException & Wait Timeouts)

橙三吉。 提交于 2020-01-14 13:50:09
问题 According to the "Book of Geb" I started to map our portal's web pages. I prefer to use variables defined within static content closure block and accessing them afterwards in page methods: static content = { buttonSend { $("input", type: "submit", nicetitle: "Senden") } } def sendLetter() { waitFor { buttonSend.isDisplayed() } buttonSend.click() } Unfortunately, sometimes I get an Geb waiting timeout exception (after 60 secs) or even worse I receive the well known

How to refactor common Geb test sequences

浪子不回头ぞ 提交于 2020-01-11 09:41:29
问题 Suppose I have multiple Geb/Spock tests that beings with logging in. For example: @Stepwise Class AddNewPictureSpec extends GebSpec { def "User at login page"() { given: "User beings from login page" to LoginPage } def "User gets redirected to Main page"() { given: "User at Login page" at LoginPage when: "User signs in" signIn "username", "pw" to MainPage then: at MainPage def "other test sequences follow...."() { } } And another test spec with the exact same start sequence: @Stepwise Class

Why does my Geb test return “failed to create driver from callback” even after updating my Selenium dependency in Grails?

99封情书 提交于 2020-01-11 06:23:31
问题 I am referencing this previous thread (geb.driver.DriverCreationException: failed to create driver from callback) - but am still having problems. I am trying to run Geb functional tests under Grails 2.4.3 and I have my Selenium support dependency set to version 2.42.2. I've also tried it with 2.43.1 and 2.45.0. Geb will stall out and not finish if I try Selenium 2.42.2 or 2.43.1, and it will outright crash if I use 2.45.0. These are the errors I get: If I try Selenium support 2.42.2 or 2.43.1

Cannot get a checkbox

流过昼夜 提交于 2020-01-07 08:07:29
问题 I cannot get the checkbox selector from the documentation working. Any idea why? $('checkbox').size() is always zero. HTML page <html> <head> <title>Geb</title> </head> <body> <input type="checkbox" name="pet" value="dogs" checked="true" /> </body> </html> Groovy code Browser.drive { go "file:///home/zoran/page.html" println $('checkbox').size() // is always zero } 回答1: To select all checkboxes on a page using a jQuery selector you need to use: $('input[type=checkbox]').size() 回答2: to select