Hi Ravindra,
Thanks for replying..!!
Sorry, but I cannot share the URL of the application with you since it is under test environment for us. But, it goes something like this:
This is a File Upload process:
1. User clicks Select File Button
2. Selects the file from Windows File upload window and the file gets displayed on the upload bar in AUT
3. Click on 'Start' Button
4. Percentage wise progress is displayed on the AUT but at this point the execution halts and does not come back to selenium. Code is unable to click on the stop button.
Tried whole lot of techniques from Actions(Clicking on x,y co-ordinate), Normal click action, submit etc. etc.
The problem is every time web driver clicks the stop button only after the upload process is over. Our need is that it should click in between the process.
I use xpath to click on the start button:
driver.findElement(By.xpath("//*[@id='uploader_start']/span[2]").click();
After this the execution comes back to the next line only after the upload process is completed :(.
So the next line to stop upload works but is of no use.
driver.findElement(By.xpath("//*[@id='uploader_stop']/span[2]").click();
Appreciate any help on this..!!
Thanks,
Shivanshu