Compatibility Test Design

Hi all
I try to design a scrit sequence to run on different browser, and try to make the chrome as a argument, but it didn`t work. the browser title can not be edit. would someone help me design it? what kind of activity and method you would suggest?

@vivachen

If you are using attach browser or open browser the selector for browser needs to be edited from the main attach browser or open broswer activity

Else add one more like in the click selector so that the window selector can also be edited from click selector

Eg: add the <html..> line again in click to edit it

Hope this helps

Cheers

one more question. If we have multiple browser type, how do we assign the value to the browser type argument. we read it from a excel file or data driven as a string type, what can we do to set the string to browser type

@vivachen

Read the data from excel and say stored in str and then use if condition

As str.Equals("Edge")

On this side assign browsertype variable to Browsertype.Edge and on then side Browsertype.Chrome

Hope this helps

Cheers

set A as a browser type argument?

if the data from excel. euqals(“EDGE”)
A= BrowserType.EDGE
else if the data from excel. euqals(“Chrome”)
A= BrowserType.Chrome

Set the Argument to the browsertype of attach brower or open browser, right?

1 Like

@vivachen

Yes thats correct

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.