unable to locate element in review window in google

58 views
Skip to first unread message

Rashmi Upari

unread,
Feb 1, 2019, 12:34:36 PM2/1/19
to Selenium Users
Hello All,
I want to do below steps
1. Open google.in site
2. Type in some near by mall name
3. Click on Write review button 
4. Add review/select starts

--> i m able to go upto 3rd step but next step unable to locate elements as i m getting window is already closed error

I have used explicit wait n Thread.sleep options but nothing seems working, please guide

OS: Mac OS X
Thanks

Screenshot 2019-02-01 at 11.00.58 PM.png

Yogesh Khachane

unread,
Feb 1, 2019, 12:37:53 PM2/1/19
to seleniu...@googlegroups.com

Use fluent wait, it will help you.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3bcf7b23-84a8-41d1-a227-939de06d0080%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yogesh Khachane

unread,
Feb 1, 2019, 12:39:24 PM2/1/19
to seleniu...@googlegroups.com

Use window handle codee

On 1 Feb 2019 23:04, "Rashmi Upari" <upari....@gmail.com> wrote:

sachin patil

unread,
Feb 2, 2019, 12:35:05 AM2/2/19
to seleniu...@googlegroups.com
Hi Rashmi,

The opened window is iframe so you need to switch it to iframe.

click on Write a Review then switch it to iframe, further you can perform your action.



Let me know if this works for you.

Thanks

Best Regard
Sachin Patil
+91-9552619077



On Fri, Feb 1, 2019 at 11:09 PM Yogesh Khachane <yoges...@gmail.com> wrote:

Use window handle codee

On 1 Feb 2019 23:04, "Rashmi Upari" <upari....@gmail.com> wrote:
Hello All,
I want to do below steps
1. Open google.in site
2. Type in some near by mall name
3. Click on Write review button 
4. Add review/select starts

--> i m able to go upto 3rd step but next step unable to locate elements as i m getting window is already closed error

I have used explicit wait n Thread.sleep options but nothing seems working, please guide

OS: Mac OS X
Thanks

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJOfxvNt2DNYEocmGx%2BUB3T4RJZNRYMhu3bQAnYdYfUMv%2BbntQ%40mail.gmail.com.

Rashmi Upari

unread,
Feb 3, 2019, 11:06:36 PM2/3/19
to Selenium Users
Hi all,
No window handle or fluent wait or switch to frame is working :(

can u please let me know any other way??

Rashmi Upari

unread,
Feb 3, 2019, 11:07:24 PM2/3/19
to Selenium Users
Hi Sachin,

iframe is not there, i need to use frame n even that is not working..

Ankit Gupta

unread,
Feb 4, 2019, 7:25:30 AM2/4/19
to seleniu...@googlegroups.com
Hi Rashmi,

Share your code, I will add the next step in the same code.

Joe Ward

unread,
Feb 4, 2019, 10:27:32 AM2/4/19
to seleniu...@googlegroups.com
What you're doing, or attempting to do, is also almost certainly against Google's Terms of Service so I'd recommend checking that first.

Rashmi Upari

unread,
Feb 4, 2019, 11:00:35 AM2/4/19
to Selenium Users
Thanks Ankit and Sachin, code worked by using switch to frame .....
Reply all
Reply to author
Forward
0 new messages