cancel
Showing results for 
Search instead for 
Did you mean: 

Launching Firefox/IE browser

SalmanAhmed
Level 4
Hi All, Did anyone use selenium c# code to Launch Firefox/IEBrowser in Blue prism code stage? If yes please notify me how can we achieve it and which are the External_References and NameSpace_Import we need to do in code stage?   Thanks Salman Ahamed
Salman Ahmed System Engineer Asia/Kolkata
11 REPLIES 11

JohnTomkins
Staff
Staff
I recommend using an IDE such as visual studio to develop and test your code first. You can then copy the code into a Blue Prism code stage. From Visual Studio you will be able to find the required external references and namespace imports.

AndreyKudinov
Level 10
If you use selenium from blueprism, you make your debugging harder and don't get any benefits from blueprism. But it worked for Chrome, when I tried it. I can probably find a working VBO later.

AndreyKudinov
Level 10
So... basically you put Webdriver.dll (might need other two as well) and chromedriver.exe/geckodriver.exe in Blueprism folder (no idea why it won't work for me with dlls otherwise) Code options - you add reference to WebDriver.dll, Namespace OpenQA.Selenium, OpenQA.Selenium.Chrome, OpenQA.Selenium.Firefox Code stage: IWebDriver driver = new ChromeDriver(); driver.Navigate().GoToUrl(""http://google.com"");   Starts and loads URL for me, 

AndreyKudinov
Level 10
RPAChallenge.com solution in attachment, using selenium and blueprism browser automation. Selenium is doing it in 15 secs consistently, blueprism in about 25, but I've seen 20 secs once. In general, I feel it should be about 2x slower on average without proper xpath and/or ability to narrow element search. If someone can come up with a way to make blueprism solution faster, I'd love to hear it. This gap will grow as page gets more complex and tweaking challenge a bit would make it even harder and slower with blueprism.

SalmanAhmed
Level 4
Thanks you all   It worked for me.   Thanks Salman Ahmed
Salman Ahmed System Engineer Asia/Kolkata

SalmanAhmed
Level 4
Hi All I am confronting some issue while I am utilizing Selenium Standalone file and Mozilla Gecko file from Blue prism. I gave proper path and in initialize page, But still, I am facing below pic error.   If someone helps!!! it's highly appreciated.                
Salman Ahmed System Engineer Asia/Kolkata

SalmanAhmed
Level 4
I am facing an error:  Page: Initialise Stage: Stage1 Type: Error Action: Validate Description: Compiler error at top section line -7: Metadata file '""D:\Selenium c#\selenium-dotnet-3.14.0\Selenium\geckodriver.exe""' could not be found Repairable: No   Page: Initialise Stage: Stage1 Type: Error Action: Validate Description: Compiler error at top section line -7: Metadata file 'c:\Users\SaLmAn\Downloads\selenium.webdriverbackedselenium.3.14.0.nupkg' could not be opened -- 'File is corrupt.' Repairable: No  
Salman Ahmed System Engineer Asia/Kolkata

AndreyKudinov
Level 10
The geckodriver just needs to be in path. And you need to unpack nupkg and reference dlls.

SalmanAhmed
Level 4
@aikudino I tried all possible ways, Could you please send me .bp release file please, It would be very helpfull??  
Salman Ahmed System Engineer Asia/Kolkata