I'm using VBA to access and download file but I'm strugling to find element.
I've got this piece of code which is perfectly working in browser console, but I'm not very familiar with selenium so I'm kindly asking you to help me with "translation" to VBA
($(".yui3-c-reportdashboardwidget-reportLabel[title='nameoftable']").parent()).find("a.ember-view").click();
For VBA I need
driver.FindElementByXpath().Click
or
driver.FindElementByCss().CLick
Thank you very much
P.
i've found a solution, there exist "ExecuteScript" command in VBA.
so solution is:
driver.ExecuteScript ("$("".yui3-c-reportdashboardwidget-reportLabel[title='mytablename']"").parent().find('a.ember-view').click();")
Related
I'm making a simple project that when I click the button then run my test.bat inside the form. I searched in stack overflow and I found this vb.net Launch application inside a form ,but when I put the cmd it says there is no gui. please help me to fix this. Thank you.
I think, you are searching for the StandardOutput
Are you searching something like this?
https://www.youtube.com/watch?v=APyteDZMpYw
I've successfully automatized a process with Open Twebst. (Go through some links, fill the forms and upload images..) So, it helped me to upload images to a HTML page in Internet Explorer 10.
I've just changed my laptop and It has Windows 10 (64bit) and it enables to use only Internet Explorer 11 instead of 10. - Previously the macro was running on Win7 - excel 2013 and IE10 - it was worked perfectly.
Somehow the macro stops when the upload browser window appears. I've already installed the program and added its reference in VBA but I had no luck. I was trying to simulate IE10 but it didn't work. I was also trying to do it in Excel 2013 instead of 2016 but it was the same.
Could someone help me to solve this issue? I searched a lot in this topic and as I can see everyone has the same issue: the VBA can't be able to control that window on his own.
This link contains a tutorial for the method I used:
http://codecentrix.blogspot.com/2009/11/automate-html-file-upload-control.html
HTML tag where I upload: ....input type="file"....
I was trying to modify the security settings in IE11, but it wasn't helped me - I'm not an expert in IE, maybe someone knows how to set it.
I would really appreciate any ideas/ codes.
Many thanks!
Zoltán Báthori
I have just started using Selenium IDE and I am trying to open the Google search engine and type in a sum (example 5+7). This will open a result page with a calculator and the answer in it.
So far the test works but when I try to verify that the answer is correct I am getting an error even though it is. Basically I am highlighting the answer, right clicking on it and clicking verifyText. Similarly if I click on the text box holding the answer and choose verifyElementPresent I get an error as well.
Can someone please enlighten me on why I am getting these errors.
P.S I am new to Selenium so I would appreciate it if your answer is kept simple
Thanks in advance :)
You are getting the error because of the latency time.
Just add a waitForElementPresent keyword before validating the result.
It Workss...
Happie learning. :)
i have a plugin installed in chrome browser.it shows star at top right of my browser when click that star it opens the window have some data. i want to write a program using ACCESS vba that will click the link n get data. the window does not have any source code provided.
please help me any thing that solve this issue is welcome.
regards
Access cannot control PC outside it's purview.
I suggest, you use Scripting language to achieve your desired results.
Can some one tell me how can i add attachment in Gmail/Yahoo mail using selenium RC/Webdriver.
Please help me out in this situation.
Thanks in advance.
Install Autoit in your machine.
Write an AutoIT script as shown below.
WinWaitActive("Choose file") \\specify the name of the choose window
Send("C:\attach\samplefile.txt") \\location of the file you want to attach
Send("{ENTER}")
After writing the code, save a the file as attach.exe
Add the below line to your selenium code(if using java)
Runtime.getRuntime().exec("c:\\path\\attach.exe");
The above will be helpful in adding an attachment. Hope it helps!
I found the answer for this question using robot api. Thanks for ppl who responds this question.