Element span is not clickable. Other element would receive the click

28 views
Skip to first unread message

Satinder Pal

unread,
May 7, 2018, 4:08:31 AM5/7/18
to Selenium Users
Hi All,

While doing automation there is one step in which loader is visible on UI for some time and after that an element should get clicked 

but i am getting this element i have used all three wait. I cannot use thread.sleep because the time is not fixed of loader. Pls helf me

public static WebElement select_view(WebDriver driver){
try{
WebDriverWait explicitlywaiting=new WebDriverWait(driver, 100);
element= explicitlywaiting.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//div[@title='Select View']/span/span")));
} catch(Exception ex){
System.out.println(ex.toString());
Log.error("Select View is not found.");
throw(ex);
   }
return element;
 }

bharathi sriram

unread,
May 7, 2018, 5:44:10 PM5/7/18
to seleniu...@googlegroups.com
Hi-
Is this the right xpath?  (By.xpath("//div[@title='Select View']/span/span"))), please verify.





--
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/433b4a37-8aec-42cf-a55d-45d082031e1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks and Best Regards,
Bharathi

Naveen Kumar

unread,
May 7, 2018, 9:11:29 PM5/7/18
to seleniu...@googlegroups.com
Check the web driver in correct frame/window


On Tue, 8 May 2018 3:14 am bharathi sriram, <bsh...@gmail.com> wrote:
Hi-
Is this the right xpath?  (By.xpath("//div[@title='Select View']/span/span"))), please verify.




On Mon, May 7, 2018 at 12:12 AM, Satinder Pal <satind...@paxcel.net> wrote:
Hi All,

While doing automation there is one step in which loader is visible on UI for some time and after that an element should get clicked 

but i am getting this element i have used all three wait. I cannot use thread.sleep because the time is not fixed of loader. Pls helf me

public static WebElement select_view(WebDriver driver){
try{
WebDriverWait explicitlywaiting=new WebDriverWait(driver, 100);
element= explicitlywaiting.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//div[@title='Select View']/span/span")));
} catch(Exception ex){
System.out.println(ex.toString());
Log.error("Select View is not found.");
throw(ex);
   }
return element;
 }

--
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.



--
Thanks and Best Regards,
Bharathi

--
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/CAEwmRzipDjhvZvEGgDyDH34cyDzBem%2BRSgg%3Dtb8AiH-aRT645A%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages