Details
-
Type:
Story
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 0.7.0
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Environment:Hidegrape with openjdk6 and groovy from Ubuntu Precise:
kbarrett@oneiric64:~$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
kbarrett@oneiric64:~$ groovy -version
Groovy Version: 1.8.6 JVM: 1.6.0_24 Vendor: Sun Microsystems Inc. OS: Linux
#!/usr/bin/env groovy
@Grapes([
@Grab("org.codehaus.geb:geb-core:0.7.0"),
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.23.1"),
//@Grab("org.seleniumhq.selenium:selenium-chrome-driver:2.23.1"),
@Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
])Showgrape with openjdk6 and groovy from Ubuntu Precise: kbarrett@oneiric64 :~$ java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) kbarrett@oneiric64 :~$ groovy -version Groovy Version: 1.8.6 JVM: 1.6.0_24 Vendor: Sun Microsystems Inc. OS: Linux #!/usr/bin/env groovy @Grapes([ @Grab("org.codehaus.geb:geb-core:0.7.0"), @Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.23.1"), //@Grab("org.seleniumhq.selenium:selenium-chrome-driver:2.23.1"), @Grab("org.seleniumhq.selenium:selenium-support:2.23.1") ])
-
Number of attachments :
Description
Once I've connected to Gmail website and got into the account by logging in, verified that the page is loaded, and all of my timeouts are long enough...
try {
print waitFor(15)
.text() //.filter("[class~=yO]")
} catch (Exception e)
.. this code does not ever find the first or any message, but they appear to exist and have these classes when Inspect Element is used.
I am a bit of a jquery noob, I will admit, but I did my googling and I tried two ways that I think should succeed at finding the message rows. (They are <tr class="zA yO"> plus another class that can get added when the mouseover happens.)
It always just times out. I can't seem to match these, Firefox or Chrome.
Am I just doing it wrong? Should this be on the mailing list?
Thanks,
Kingdon
I gave up on using Geb for this. Clearly Gmail does not want to be automated. I will just interact with the IMAP store in the more usual way of mail being retrieved by program.