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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Satinder Pal
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

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

bharathi sriram
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 <[hidden email]> 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 [hidden email].
To post to this group, send email to [hidden email].
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

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEwmRzipDjhvZvEGgDyDH34cyDzBem%2BRSgg%3Dtb8AiH-aRT645A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Naveen Kumar-4
Check the web driver in correct frame/window


On Tue, 8 May 2018 3:14 am bharathi sriram, <[hidden email]> 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 <[hidden email]> 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 [hidden email].
To post to this group, send email to [hidden email].
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

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEwmRzipDjhvZvEGgDyDH34cyDzBem%2BRSgg%3Dtb8AiH-aRT645A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADUCq7yTZvehxg4roBgtjM2wd7Xo7V1k56anL7%3DLM%2B_eskaE3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.